DALLAS (AP) — Snipers opened fire on police officers in the heart of Dallas, killing five officers and injuring six others during protests over two recent fatal police shootings of black men, police said, in a week that bore dark echoes of the tumultuous civil rights era.

Three people are in custody and a fourth suspect was exchanging gunfire with authorities in a parking garage downtown, Dallas Police Chief David Brown said early Friday morning.

The suspect is not cooperating and has told negotiators he intends to hurt more law enforcement officials, the chief said.

The gunfire broke out around 8:45 p.m. Thursday while hundreds of people were gathered to protest fatal police shootings this week in Baton Rouge, Louisiana, and suburban St. Paul, Minnesota. Brown told reporters the snipers fired “ambush style” upon the officers. 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 Thursday night after a Minnesota officer on Wednesday fatally shot Philando Castile while he was in a car with a woman and a child. 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 a cellphone video.