Update | Student in deadly US school shooting spree had tweeted warnings earlier
Student's cafeteria killing may have been triggered by a failed romance

A US student who had issued chilling warnings on Twitter opened fire in a school cafeteria, killing at least one person and critically injuring three before taking his own life.
Terrified pupils dived for cover as the gunman, identified as Jaylen Fryberg, launched his attack in a school in the northwestern state of Washington.
"This continues to be an active homicide investigation. We want to make sure we do this right and have all of the right answers," local police spokesman Robb Lamoureux said on Friday.
As with previous such shootings, the episode on Friday revived debate on gun control, even though the gun involved was legally acquired.
"I heard one loud bang and I was wondering what it was. Then I heard about four or five more," a pupil identified only as Jordan told CNN. "People started screaming and people started getting to the ground and going for the nearest exit. So I hit the ground. But after he'd already put some bullets into the backs of students."
The shooting, just the latest in a long line of such rampages in the United States in recent years, erupted in Marysville, 55km north of Seattle.