A 17-year-old boy battered two pupils and a teacher at a boarding school