That is what school police or local police and sheriff are for. They are taught when whacking or more is appropriate and their job requires they accept the risk. Teachers should not be required to accept this risk even if they are physically capable.
Yeah, I remember these videos when there is a school shooter and cops are just chilling outside.
I'd be not against the idea of teacher-whaking feature. Also, if there is a kid who bullies my kid, I'd not be against the idea to whack a parent of that kid, if nothing else works.
Obviously everything should be at the reasonable level.
I am heavily against the idea that certain powers should be centralized into a single entity.
Also it should legally be allowed to whack a parent, as long as it is justified.