A gunman involved in a deadly attack in Dallas that killed five police officers said he was "upset" at recent fatal police shootings of black men.
The alleged attacker, identified as Micah Xavier Johnson, told a police negotiator he was upset at white people and wanted to kill them, especially white officers, before he was killed by a robot-delivered bomb.
Dallas police chief David Brown described the shootings, which also left seven officers and two civilians wounded, as a "well-thought-out evil tragedy".
Johnson had served in the Army Reserve for six years - and completed a tour of duty in Afghanistan between November 2013 and July 2014.
Before he died, the 25-year-old said he was acting alone and was not affiliated with any terror group.
The "ambush style" attack began at around 8.45pm on Thursday, as hundreds of people gathered to protest over fatal police shootings this week in Baton Rouge, Louisiana, and suburban St Paul, Minnesota.
During the stand-off, Johnson told police that "the end is coming" and there were bombs "all over downtown Dallas".
However, investigators said no explosives were found following "extensive sweeps" of the area.
It was the deadliest day for US law enforcement since the 9/11 terrorist attacks in 2001.
Police had earlier said at least two "snipers" committed the shootings, but it remains unclear how many attackers were involved.
Two men and a woman were being questioned in connection with the attack, and Johnson's home in a suburb of Dallas - about an hour away from the scene of the shootings - has been searched by investigators.
Attorney General Loretta Lynch described the Dallas attack as an "unfathomable tragedy" but warned against the recent events turning into a "new normal" for America.
Police had earlier said at least two "snipers" committed the shootings, but it remains unclear how many attackers were involved.
Two men and a woman were being questioned in connection with the attack, and Johnson's home in a suburb of Dallas - about an hour away from the scene of the shootings - has been searched by investigators.
Attorney General Loretta Lynch described the Dallas attack as an "unfathomable tragedy" but warned against the recent events turning into a "new normal" for America.
Meanwhile, President Barack Obama condemned the killing spree as a "vicious, calculated and despicable act".
He went on: "We also know that when people are armed with powerful weapons, unfortunately it makes attacks like these more deadly and more tragic.
"And in the days ahead we are going to have to consider those realities as well."
Two of the victims have been named as 43-year-old Brent Thompson, who worked for the city's transport police and had only recently got married, and Officer Patrick Zamarripa of the Dallas force.
Another of the victims was Michael Krol, who used to work at the Wayne County Sheriff's Office.
Mr Brown revealed negotiations with Johnson had broken down after an exchange of fire between the gunman and officers and they "saw no other choice" but to use a robot to detonate an explosive device next to him.
He said: "Other options would have exposed our officers to grave danger."
This is believed to be the first time that a US law enforcement agency has used a robot to kill an attacker.
The attack came amid protests across the US over recent police shootings.
On Tuesday, music vendor Alton Sterling was shot dead in Baton Rouge, Louisiana, after being held down by police officers.
The following day, Philando Castile was in a car with his girlfriend and child when he was shot dead by an officer in Minnesota.
Both shootings were captured on mobile phones and the footage was widely shared.