Even if the teachers are not armed someone who would seek to harm students may believe that they are and possibly be deterred
It is a small obstacle in the mind of the deranged but worth trying. However this is not a solution just a deterrent. The teacher would have to be highly trained and the weapon secret and securely stored.