Bomb-making material, rifles, ammunition and a combat journal have been found at the home of the suspect in the Dallas shooting, officials say.
Five police officers were killed and seven wounded in a hail of gunfire during a protest on Thursday against the shooting of black men by police.
The suspect, 25-year-old Micah Johnson, died after a long stand-off with police in central Dallas.
Mayor Mike Rawlings said officials believed he was "the lone shooter".
"We believe now the city is safe," the city mayor said at a news conference on Friday.
The protest in Dallas took place after this week's deaths of Philando Castile in Minnesota and Alton Sterling in Louisiana.
Officials said on Friday that a number of gun attacks on police officers and civilians had occurred in the aftermath of the deaths in Minnesota and Louisiana.
In Tennessee, a black army veteran killed a woman and also injured three other people, including a police officer, as he opened fire on a motorway on Thursday morning, before the Dallas attacks. After his arrest, Lakeem Keon Scott told investigators he was troubled by police violence against African-Americans
In Missouri, a police officer was shot from behind after he walked back to his patrol car to check the driving status of a black man who he had stopped. Antonio Taylor, 31, was later arrested but the motive for the shooting is unknown
In Georgia, an officer was shot after he responded to a call from a man who said his car had been broken into. Again the motive is unknown
In the Georgian state capital Atlanta on Friday evening, thousands marched in protest at the recent police shootings. The protesters are currently in a stand-off with police as they block a major road, but the demonstration is peaceful.
What we know
Protests against police killings were also held in other US cities, including Houston, New Orleans and San Francisco. There have been some arrests, but again the protests have been peaceful.
'Wanted to kill whites'
Police in Dallas said the bomb-making material was found when they searched Micah Johnson's home in the suburb of Mesquite.
They also confirmed media reports that the suspect, an army veteran, was the person killed when they remotely detonated explosives they sent into the car park where he was holed up.
Mr Rawlings said the suspect was given a choice of "surrendering without harm or remaining in place", adding that he chose "the latter".
The authorities said that Johnson had no criminal history.
Police Chief David Brown said the suspect had told a negotiator that he had wanted to kill white people, especially white police officers, because he was angry about the recent shootings of black men by police.
Mr Brown added that the man had said he was not affiliated with any groups and had acted alone.
Police arrested three people and initially said they believed at least two snipers had caught police in crossfire, shooting some officers in the back.
Micah Johnson lived with his mother in Mesquite, an eastern suburb of Dallas, and had been a member of the US Army Reserve, US media reported.
Investigators later sealed off and searched his home, carrying away several bags of material.
The hunt for the wrong man
Gunfire broke out at around 20:45 local time on Thursday (01:45 GMT Friday) as demonstrators marched through the city. Police described the ambush as carefully planned and executed.
Two civilians were also injured in the shootings.
President Barack Obama, who is attending a Nato summit in Poland before a visit to Spain, called it a "vicious, calculated and despicable attack on law enforcement".
He later ordered all flags on public buildings to be flown at half-mast.
Mr Obama will visit Dallas early next week, cutting short the Spanish part of his European trip, the White House said.
The Dallas attack marks the deadliest day for US law enforcement officers since the 9/11 attacks in 2001.
Reacting to the latest shootings, presumptive Democratic presidential nominee Hillary Clinton said: "There is too much violence, too much hate, too much senseless killing, too many people dead who shouldn't be. No-one has all the answers. We have to find them together."
Meanwhile, her Republican opponent Donald Trump said in a video the shooting in Dallas "has shaken the soul of our nation".
He added: "The deaths of Alton Sterling in Louisiana and Philando Castille in Minnesota also make clear how much more work we have to do to make every American feel that their safety is protected."
Philando Castile was shot dead after being stopped in his car by police in St Paul, Minnesota , on Wednesday. Alton Sterling was killed by police a day earlier in Baton Rouge, Louisiana.
Both incidents were captured on video, reigniting what has become a national debate.