As soon as those glass windows in the doors were shot out, the building should have immediately been locked down and the kids and staff protected. Glass breakage alarms are not expensive.
The alarms went off. I suspect that is why so few were killed