Just the presence of armed response could be enough deterrent. School shooters don't want to fight their way in.
P
This right here ^^^ is the primary reason for allowing teachers to carry. Just the thought that someone is likely armed will be the primary deterrent for punks that want to shoot up schools.