Mass. teacher slain; 14-year-old student charged