Middle school student opens fire, kills teacher and himself