A man walked into a school in southern California Monday and shot dead his estranged wife in front of her students, killing an eight-year-old boy in the crossfire before turning his gun on himself.
Police said local resident Cedric Anderson had checked into the office as a visitor after entering the campus in the city of San Bernardino and going to the special needs classroom, where he opened fire on Karen Elaine Smith, 53, as she was teaching.
Officers said Anderson, also 53, had only targeted Smith but two students were caught in the crossfire and one of them, Jonathan Martinez, died later in hospital.
"This does appear to have been a murder-suicide with both male adult and female adult victim succumbing to injuries, with the male succumbing to a self-inflicted gunshot wound," Lieutenant Mike Madden of the San Bernardino Police Department told a news conference.
Police said initially the two wounded students had been listed as critical but later confirmed Martinez's death.
Students at North Park Elementary School -- which has around 500 students between kindergarten and sixth grade -- were transported to a nearby campus, where they were "having snacks, playing games and watching a Disney movie," the police department tweeted.
Many panicked parents and relatives who rushed to the school had to endure waits of several agonizing hours before they could be certain that their child was not among the victims.
"I saw blood splashing on the wall. I ran as fast as I can. I lost a shoe," one student told AFP.
An 11-year-old boy told AFP he was in the middle of a math test when he heard the gunfire.
"I started feeling really scared from the SWAT team, and people from the police station came through the door to walk us out we had to walk with our hands up," he said.
- Massacre -
San Bernardino, about an hour's drive east of Los Angeles, was the scene of horrific violence when Syed Rizwan Farook and his wife Tashfeen Malik gunned down 14 people and wounded 22 others in December 2015 before being shot dead by police.
At the time, before the Pulse nightclub shooting in Orlando, Florida, it was the deadliest attack on US soil since September 11, 2001.
Pakistani-born Malik -- who met her future US-born husband on a Muslim dating website and married him in Saudi Arabia -- had pledged allegiance to the Islamic State group on Facebook and was instrumental in radicalizing him.
Monday's shooting will likely reignite the debate on gun violence in the US, where attempts to put in place tougher gun control measures have failed, despite a series of mass killings.
In one of the most notorious school shootings in modern US history, 20 children and six staff were massacred in 2012 at Sandy Hook Elementary in Newtown, Connecticut.
In June last year, 49 people were killed in a shooting rampage at Pulse, a gay nightclub in Orlando, Florida.
"School campuses are sacred spaces where children should be free to learn, play and grow without threat of violence," Los Angeles Mayor Eric Garcetti said in a statement.
"Today's shooting... is a reminder that deadly weapons can shatter that sense of security, mercilessly and without warning -- leaving parents and educators struggling to address the questions, fears and anxieties that gun violence creates for our young people."
- Gun lobby -
More than 33,000 American residents die every year from guns, including suicides, a rate far higher than in other Western countries.
While losing Democratic presidential candidate Hillary Clinton vowed to fight the gun lobby during last year's election campaign, President Donald Trump promised to defend the right to bear arms and said he sometimes carried a gun.
In February, Trump signed a measure into law blocking an Obama-era rule designed to keep guns out of the hands of certain mentally ill people.
The rule aimed to prevent an estimated 75,000 people with mental disorders from being able to buy firearms as part of Obama's efforts to strengthen the federal background check system in the wake of the Sandy Hook massacre.
Adam Lanza, 20, who shot dead his mother using her guns before killing the students, adults and himself, had Asperger's syndrome and obsessive-compulsive disorder.
The Obama administration rule required the Social Security Administration to send in the names of beneficiaries with mental impairments who also have a third party manage their benefits.
But the Republican-majority Senate, backed by the National Rifle Association pro-gun lobby and disabled advocacy groups, voted 57-43 to overturn the regulation.