A US school is in shock after a pupil shot three children, two teachers and sustained serious injuries himself in a gun battle.
It comes less than a month after two students were killed in a school shooting nearby.
Police say an 18-year-old student armed with a shotgun and handgun opened fire at the school in El Cajon, east of San Diego, California, wounding his victims with shotgun pellets.
The youth sustained the most serious injuries - he was shot in the jaw and buttocks in a gun battle with a campus officer.
At the time, police and district officials were at a nearby school investigating graffiti that had threatened an attack.
"All of a sudden we heard shots and glass breaking," said William Ditzler, 16, who was in the Granite Hills High School office when he spotted the gunman through a window.
"I was under the desk," Ditzler said. "I was just praying that he wouldn't walk through the door."
Junior Chris Wesley said the gunman fired at least eight shots and reloaded his weapon during the shooting.
Police said Jason Hoffman had a 12-gauge shotgun and a .22 calibre semi-automatic handgun, which prosecutors said came from his home.
The motive for the attack was not clear.