An 11-year-old Utah boy who said he brought a gun to school to protect himself from a Newtown-style attack, then brandished the pistol at three classmates during recess, has been detained on assault and weapons charges, a school spokesman said on Tuesday.