A horrible failure by police to do their job. The police also actively restrained and handcuffed parents who were trying to get in to the school.
Taking a broader look at the situation, kids being rescued in heroic efforts by parents when police are actively not doing their job or making a situation worse, the solution to this is probably not unregulated phone access for children during school hours.