Headmaster reached school with revolver