Johnson, a black Army veteran, began firing on officers while hundreds of people were gathered in downtown Dallas to protest recent fatal police shootings. Authorities have said the 25-year-old kept a journal of combat tactics and had amassed a personal arsenal at his home that included bomb-making materials.

"We're convinced that this suspect had other plans and thought that what he was doing was righteous and believed that he was going to target law enforcement — make us pay for what he sees as law enforcement's efforts to punish people of color," Dallas Police Chief David Brown told CNN's "State of the Union" Sunday.

The fact that Johnson had material for explosives and talked of using homemade bombs during a standoff with police before he was killed indicated he could have inflicted more damage with more time, said Dallas County Judge Clay Jenkins.

"If this had not been a crime of opportunity where the protest was quickly organized in response to events in the same week ... he could have caused a lot more harm than he did," Jenkins said.

Also Sunday, Brown revealed new details about Johnson's negotiations with police, saying that Johnson taunted authorities, laughing at them, singing and at one point asking how many officers he had shot.

Johnson, who served in the Army Reserve for six years starting and did one tour in Afghanistan, insisted on speaking with a black negotiator and wrote in blood on the wall of a parking garage where police cornered and later killed him, Brown said.

The gunman wrote the letters "RB" and other markings, but the meaning was unclear. Investigators are trying to decipher the writing by looking through evidence from Johnson's suburban Dallas home, Brown said.

The writing suggested that Johnson was wounded in a shootout with police. An autopsy will confirm exactly how many times he was hit, Jenkins said.

Dallas police said Sunday that neither they nor the FBI would confirm that photographs circulating on the internet — two pictures that show an assault rifle in rubble and the bloodied body of a black man wearing an armored vest amid building debris — were from the parking garage.

The attack began Thursday evening during protests over the police killings of Philando Castile, who was fatally shot near St. Paul, Minnesota, and Alton Sterling, who was shot in Louisiana after being pinned to the pavement by two white officers.

Mayor Mike Rawlings: 'God Bless Dallas'

Video showed protesters marching along a downtown street about half a mile from City Hall when shots erupted and the crowd scattered, seeking cover.

Among those injured were two officers from El Centro College, the school said Sunday night.

First Seconds: Protest Erupts into Gunfire

A protest against nationwide officer-involved shootings turns violent in Dallas's downtown area. In the end, five police officers were killed by two men who were in sniping positions above ground, according to authorities. Another 6 officers were injured. (Published Friday, July 8, 2016)

El Centro said in a statement posted on its website that Cpl. Bryan Shaw and Officer John Abbott were hurt in Thursday's attack.

Shaw was struck by a bullet as he guarded an entrance to the college, the statement said. The school said Shaw was treated on scene and returned to protect other officers and civilians.

Obama: America Is 'Horrified' Over Dallas Attack

"I believe I speak for every single American when I say that we are horrified over these events," President Barack Obama said after five police officers were fatally shot in Dallas at a protest Thursday. (Published Friday, July 8, 2016)

Abbott was also guarding the entrance. The school said he sustained injuries to both legs from flying glass after it was struck by bullets. Abbott tended to his wounds at the scene and then returned to assist others, the statement said.

Both men were resting at home.

Man Witnesses, Records Officer Shot at Point Blank Range

A Dallas man who recorded the apparent point blank murder of a police officer spoke with NBC 5 overnight Friday, recalling what he witnessed. (Published Friday, July 8, 2016)

Dallas police previously said seven officers and two civilians were hurt in the attack. Its number of wounded did not include any El Centro College officers.