A 14-year-old pupil shot two teachers with a shotgun at a school near Marseille as violent student protests over education funding grip France.