We had a boy like that at my school. In those days corporal punishment was permitted. He received it only once, after much patience and tolerance from the teachers, but that one whack stopped his bad behaviour (in school anyway). It was only after they banned school discipline that the schools became undisciplined (
how surprising).
I know corporal punishment was abused by some teachers, but that was due to a lack of regulation. One of our teachers was sacked for lining some of the boys against the gymnasium wall and repeatedly kicking a football at them. A good discipline structure would likely avoid cases where a teacher is allowed to be pushed beyond the limit where he lashes out. We all have a breaking point.
I don't know why anyone goes into teaching these days. Teachers have zero authority and zero protection but are under maximum suspicion.