He fired two rounds before they put a bullet in his head.
I strongly expect he had been intending to shoot up the school. He had a backpack full of ammo and was trying to pick up a daughter that he was not allowed to pick up at school as if that were terms of a divorce or the modern left coast equivalent.