Eyewitness footage has revealed first-hand the horror of the Dallas police shootings with left five officers dead and at least six more with serious injuries.
Three people are in custody and police were negotiating with a suspect in a parking garage who was exchanging gunfire with officials, Dallas Police Chief David Brown said early on Friday morning.
The suspect is not co-operating and has told negotiators he intends to hurt more law enforcement officials, Mr Brown said.
Dallas Police Department said: “It has been a devastating night. We are sad to report a fifth officer has died.”
The gunfire started at around 8.45pm local time on Thursday while hundreds of people were gathered to protest over fatal police shootings this week in Baton Rouge, Louisiana, and suburban St Paul, Minnesota.
Jamaal Johnson says he witnessed bullets from parking garage next to BOA bldg, ricochet off concrete. pic.twitter.com/shhnnW7MKa
— Sarah Mervosh (@smervosh) July 8, 2016
Mr Brown told reporters the snipers fired on the officers “ambush style” from “elevated positions”.
Mayor Mike Rawlings said one member of the public was wounded in the gunfire.
Protests were also held in several other cities across the country on Thursday night after a Minnesota officer shot Philando Castile dead while he was in a car with a woman and a child on Wednesday.
The aftermath of the shooting was livestreamed in a widely shared Facebook video.
A day earlier, Alton Sterling was shot in Louisiana after being pinned to the pavement by two white officers. That, too, was captured on video on a mobile phone.
Video footage from the Dallas scene showed protesters marching along a street about half a mile from City Hall, when the shots broke out and the crowd scattered, seeking cover.
Mr Brown said that it appeared the gunmen “planned to injure and kill as many officers as they could”.
Rashida Ivey said people started running in the opposite direction of the gunshots as soon as they started. pic.twitter.com/FaPod2Dvu4
— Caleb Downs (@Calebjdowns) July 8, 2016
The search for the snipers stretched throughout the city centre, an area of hotels, restaurants, businesses and some residential apartments.
The scene was chaotic, with helicopters hovering overhead and officers with automatic rifles on the street corners.
“Everyone just started running,” Devante Odom, 21, told The Dallas Morning News. “We lost touch with two of our friends just trying to get out of there.”
A woman was taken into custody in the same parking garage where the stand-off was continuing, Mr Brown said. Two other people were taken into custody during a traffic stop.
Mr Brown said police did not have a motive for the attacks or any information on the suspects.
He said they “triangulated” in the area where the protesters were marching and had “some knowledge of the route” they would take.
He said authorities have not determined whether any protesters were involved with or were complicit in the attack.
Lynn Mays was at the scene when the shooting started. He said an officer saved his life. pic.twitter.com/Kc4aXlg9GT
— Caleb Downs (@Calebjdowns) July 8, 2016
Police were not certain early on Friday whether all the suspects have been located, Mr Brown added.
Dallas police said a person of interest whose picture had been circulated had turned himself in.
Police earlier had circulated a picture of a man in a camouflage T-shirt who was carrying a long gun.
A man who identified himself as the man’s brother said his sibling was not one of the gunmen.
He told television station KTVT that, once the shootings had started, his brother had handed the gun over to a police officer.
The FBI’s Dallas division is providing “all possible assistance”, spokeswoman Allison Mahan said.
Witness Shantay Johnson says she saw #DallasShooting suspect during #BlackLivesMatter protest. @dallasnews pic.twitter.com/93Y7raCql4
— G.J. McCarthy (@gjmccarthy) July 8, 2016
Local resident Carlos Harris said the gunmen “were strategic. It was tap, tap pause. Tap, tap pause.”
Demonstrator Brittaney Peete told the Associated Press that she did not hear the gunshots, but she “saw people rushing back toward me saying there was an active shooter”.
She said she saw a woman trip over and nearly get trampled.
Late on Thursday, Dallas police in uniform and in plain clothes were standing behind a police line at the entrance to the emergency room at Baylor Medical Centre in Dallas.
It was unclear how many injured officers were taken there. Hospital spokeswoman Julie Smith had no immediate comment.
Three of the officers who were killed were with the Dallas Police Department. One was a Dallas Area Rapid Transit officer.
Texas Governor Greg Abbott released a statement saying he has directed the Texas Department of Public Safety director to offer “whatever assistance the City of Dallas needs at this time”.
“In times like this we must remember – and emphasise – the importance of uniting as Americans,” Mr Abbott said.