President Obama will visit Dallas next week following the shooting that left five police officers dead, the White House said in a statement Friday.

ADVERTISEMENT

Obama accepted an invitation from Dallas Mayor Mike Rawlings to make the visit early next week, though the date hasn't yet been released.

Five police officers were killed and seven wounded by gunfire late Thursday, the deadliest attack on police since 9/11. The suspect, described by police as a "lone shooter," was killed by a police-detonated explosive.

Thursday’s shooting occurred amid protests over police using lethal force against African-Americans. Two black men were killed by police officers this week in separate incidents captured in graphic videos released on social media.

The president spoke with Rawlings early Friday morning from the NATO summit Poland, while the incident was still ongoing.

"I believe I speak for every single American when I say we are horrified over these events, and we stand united with the people and the police department in Dallas,” Obama told reporters Friday.

"Anyone involved in the senseless murders will be held fully accountable,” the president added. “Justice will be done."