Police detained a 14-year-old pupil suspected in a rare school shooting on Monday in France that wounded the principal and another staff member.