A school has investigated a parent's complaint that a teacher told a pupil to “get on his knees and beg” when he asked for help during a lesson.