A decorated former US Marine sergeant opened fire on police in Baton Rouge on Sunday, killing three officers, nearly two weeks after the fatal police shooting of an African American there sparked nationwide protests, including one shattered by the massacre of five Dallas policemen.
The suspect, dressed in black and armed with a rifle, was himself shot to death minutes later in a gunfight with police who converged on the scene of a confrontation that Mayor Kip Holden said began as an "ambush-style" attack on officers.
Two Baton Rouge Police Department officers and one sheriff's deputy were killed, and one sheriff's deputy was critically wounded. Another police officer and one other deputy suffered less severe wounds and were expected to survive.
Colonel Mike Edmonson, superintendent of the Louisiana State Police, told a news conference the gunman was believed to have acted alone, contrary to early reports that police may have been looking for other shooters.
It was not immediately clear whether there was a link between Sunday's bloodshed and unrest over the police killings of two African-Americans under questionable circumstances earlier this month -- Alton Sterling, 37, in Baton Rouge on July 5, and Philando Castile, 32, near St Paul, Minnesota, on July 6.
Police did not name the suspect. But a US government official told Reuters the gunman had been identified as Gavin Long, of Kansas City, Missouri, and was an African American. He was reported by other media to be 29 years old.
According to Long's military record, released by the Pentagon, he served in the Marines from August 2005 until August 2010, achieving the rank of sergeant. Listed as a data network specialist for the Marines, he was deployed to Iraq from June 2008 until January 2009, earning several medals and commendations.
Authorities declined to offer a possible motive for Sunday's attack in Louisiana's capital.
Pandemonium caught on radio
A second government source, speaking on condition of anonymity, said investigators had reason to believe an emergency 911 call may have been used to lure police into harm's way.
Edmonson said several officers came under fire as police were responding to a report of a man dressed in black standing behind a store holding a rifle shortly before 9 am.
In the ensuing pandemonium caught on a recording of emergency radio traffic, police are repeatedly heard reporting: "Officer down" and "deputy down" as officers swarmed the area searching for and ultimately confronting the gunman.
The episode was over in about eight minutes, according to Edmonson's account.
President Barack Obama condemned the attack, vowed that justice would be done and called on Americans to focus on rhetoric and actions that united the country rather than divided it.
"We as a nation have to be loud and clear that nothing justifies violence on law enforcement," Obama said in televised remarks from the White House.
Louisiana Governor John Bel Edwards called the shootings an "unspeakable, heinous attack" that served no purpose.
"There simply is no place for more violence. That doesn't help anyone, it doesn't further the conversation, it doesn't address any injustice, perceived or real. It is just an injustice in and of itself," he told reporters in Baton Rouge.
Obama has sought to balance concerns about police abuses, largely against African Americans, while paying tribute to fallen officers.
He attended a memorial service last week for the five Dallas police officers killed by a black former US soldier who opened fire at the end of an otherwise peaceful protest on July 7 denouncing the Sterling and Castile slayings.
Those two killings and the reprisal attack on Dallas police by a suspect found to have embraced militant black nationalism renewed national tensions over racial justice and gun violence just as America's presidential campaign was kicking into high gear. The Dallas gunman, Micah Johnson, 25, was killed by police deploying a bomb-carrying robot against him.
The wave of violence has also heightened security concerns across the country, notably in Cleveland and Philadelphia, hosts to this week's Republican National Convention and next week's Democratic National Convention, respectively, which are expected to formally nominate Donald Trump and Hillary Clinton for the November 8 election.
Worries around convention
"We demand law and order," Trump said in a Facebook posting on Sunday afternoon.
In a statement, Clinton urged Americans to "stand together to reject violence and strengthen our communities."
The head of a Cleveland police union called on Ohio Governor John Kasich to declare a state of emergency and suspend laws allowing for the open carry of firearms during the Republican convention.
"I don't care what the legal precedent is. I feel strongly that leadership needs to stand up and defend these police officers," Steve Loomis, president of the Cleveland Police Patrolmen's Association, told Reuters in an interview.
Loomis said he was concerned about copycat shootings at the Republican convention.
A spokeswoman for Kasich said the governor did not have the power to suspend the open-carry law.
Sunday's shootings occurred about a mile from the Baton Rouge Police Department headquarters, where dozens of people were arrested this month while protesting Sterling's death. The father of five was shot and killed at close quarters by law enforcement officers.
A witness to the Baton Rouge shootings, Brady Vancel, told CNN he saw a man dressed in black clothing and a ski-type mask running through a parking lot amid a hail of gunfire.
Vancel said the gunman "looked up and saw me. We stopped. I froze, he froze for a second, and he turned around and ran in the opposite direction the same time I turned around and ran in the opposite direction."
Shocked community members lined the highway about a mile from the shootings, at the site of the protests against Sterling's killing.
"It never hits home until it's in your own living room," said Redell Norman, an activist who attended the recent protests at police headquarters.