Parents had complained about the teacher’s behaviour