A 14-year-old was detained after the middle-school principal and teacher were injured.