Baton Rouge shootings: What we know
A shooting in the US city of Baton Rouge has left three police officers dead and three more injured, one critically.
The gunman was shot dead at the scene.
This is what we know so far about what has happened.
The shooting was near the police headquarters in the city.
It happened at 09:00 local time (14:00 GMT) on Sunday on Airline Highway at a petrol station near a shopping centre, police said.
The local sheriff's office said the incident happened when officers are said to have responded to reports of a man with an assault rifle walking down an open stretch of road.
"It's my understanding that they [the officers] had responded to an initial shooting incident," Casey Rayborn Hicks, public affairs officer for the sheriff's office, told local WAFB television.
Witnesses reported a man with his face covered, shooting indiscriminately.
The sheriff's office posted the following statement on Facebook:
Witness Brady Vancel told local media he saw what may have been gang members shooting at each other before police arrived.
Three police officers were killed, another three injured, one of them critically.
The gunman was shot dead by police and although police initially searched for two others, police later said they believed no other suspects were at large.
Who carried out the shooting?
The gunman has been identified as 29-year-old Gavin Long, a Marines veteran.
He served in the US Marines from 2005-2010, including a seven-month Iraq tour in 2008.
He attained the rank of sergeant and received several awards, including the Marine Corps Good Conduct Medal.
A house in Kansas City, Missouri, where Long was believed to have lived, was being surrounded by police on Sunday evening.
Court records showed he married in 2009 and divorced in 2011. The University of Alabama confirmed he studied there for a single semester in 2012.
Some reports say a court document shows that Long successfully applied to have his name legally changed to Cosmo Ausar Setepenra.
But others suggest this is simply the name he used on social media.
He has left social media comments and posted video messages complaining about the treatment of African Americans at the hands of the police and calling for black men to make sacrifices for their race.
"You gotta fight back," he urged viewers in one video.
Long turned 29 on Sunday, the day of the shooting.
Who were the officers who were killed?
Two of the officers were from the Baton Rouge Police Department.
Matthew Gerald, 41, had been there for less than a year. Before the police, he was in the Marines and in the Army.
He was married with two children.
Montrell Jackson, 32, had been on the force for a decade. A Louisiana state representative says he had a four-month-old baby.
Mr Jackson, who was black, posted a Facebook message which said he was physically and emotionally tired.
"I swear to God I love this city but I wonder if this city loves me," he is reported to have said.
The third victim was Brad Garafola, 45, and a 24-year veteran of the East Baton Rouge Sheriff's Office.
He was married with four children, aged seven to 21.
What do we know about the condition of the injured officers?
A spokeswoman for the East Baton Rouge Parish Sheriff's Office said 41-year-old Nicholas Tullier is in critical condition.
The second officer, Bruce Simmonds, 51, has non-life-threatening injuries.
A third injured police officer is thought to be in a stable condition.
What's the backdrop to the shooting?
It comes amid spiralling tensions across the city - and the country - between the black community and police.
That, and the shooting of another black man, Philando Castile, by police in Minnesota, led to protests across the US. It also triggered a revenge attack by a black army veteran who shot dead five officers in the city of Dallas.
President Barack Obama said the Baton Rouge attack was "the work of cowards" and there was never any justification for violence against the police.