The teacher admitted to striking the students, claiming he did so to prevent them from causing chaos and disruption during the lesson