Afghanistan is marking a national day of mourning, one day after a bomb attack in Kabul killed at least 80 people and wounded more than 200 others during a peaceful protest rally.
Islamic State has claimed responsibility for Saturday's attack; the deadliest in Kabul since 2001.
An Afghan Interior Ministry statement said three suicide bombers attacked the peaceful demonstration. It said one of them detonated his device among the protesters, one mistakenly killed only himself, and a third was shot dead by security forces guarding the rally.
The Ministry has banned public gatherings and demonstrations for 10 days.
A website linked to IS claimed responsibility for the violence. A statement said the attack was meant to warn Afghanistan's ethnic Hazaras, who are mostly Shi'ite Muslims, to stop joining the Syrian government in its fight against the terror group.
Rights groups and analysts have accused Iran of covertly recruiting and training men from the estimated 3 million Afghan refugees it hosts and sending them to Syria to fight alongside government forces.
Tehran, however, has condemned the bomb attack. Iranian Foreign Minister Mohammad Javad Zarif said in a tweet, "Shia and Sunni are both victims and must unite to defeat extremists."
An Afghan woman weeps at the site of a suicide attack in Kabul, Afghanistan July 23, 2016.
Afghan resident Ashraf Ghani condemned the violence as the work of “terrorists and opportunists,” saying the government put in place measures to provide security for the protesters.
“But terrorists entered the protests and carried out explosions that martyred and wounded a number of citizens, including members of security and defense forces,” he said.
Later in the evening, addressing a gathering in the palace of mainly Hazara leaders, Ghani ordered an investigation into the attack and declared Sunday as a national mourning day to offer special prayers for the victims in the mosques.
The United States also strongly condemned what it calls a "heinous" attack. A White House statement says what makes it even more despicable is that it targeted a peaceful protest.
The attack targeted a rally of thousands of ethnic Hazaras who were demanding that the government reroute a planned power line through their poverty-stricken central province of Bamiyan.
WATCH: Islamic State Bomb Attack Causes Mayhem in Kabul
Ahead of Saturday's rally, authorities had blocked major roads in the capital to prevent protesters from reaching the city’s center or the presidential palace. The measures severely restricted movement, forcing shops and businesses to close. It also hampered the ability of rescue workers to reach victims of the attack.
That led some rally participants to accuse the government of either playing a role in the attack or allowing it to take place through negligence.
'Government is responsible'
Atiq Jafari, a member of the Enlightenment Movement, which has demanded the government reroute the planned power line, said Afghan forces failed to protect the protesters and some ran away soon after the blast occurred.
"The government is responsible for the provision of security for its citizens and it has failed to do so," Jafari said.
A spokesman for Ghani told VOA that the attack was an example of how militant groups are picking soft targets to discredit the government.
"We had concerns about the attacks and shared our concerns with the protesters," said Dawa Khan Menapal. "We had taken every possible security measure, but the attackers had burkas on, which made it difficult for the security forces to prevent."
The United Nations, Pakistan’s Foreign Ministry and the U.S. Embassy in Kabul each released statements condemning the attack.
Thousands of demonstrators march towards the center of Kabul, Afghanistan, Saturday, July 23, 2016.
“This attack is particularly heinous because it targeted civilians as they exercised their rights to freedom of assembly and freedom of expression,” said Tadamichi Yamamoto, head of the U.N. Assistance Mission in Afghanistan. He reiterated that an attack deliberately targeting a large, concentrated group of civilians amounted to a war crime.
Amnesty International said the bombing of a peaceful protest demonstrated “the utter disregard that armed groups have for human life.”
In May, the Hazara community organized a similar mass demonstration against the current route of the multimillion-dollar TUTAP regional electricity line involving Turkmenistan, Uzbekistan, Tajikistan, Afghanistan and Pakistan. The original plan was to route the so-called TUTAP line through Bamiyan, a mostly Hazara region, but then the path was changed so that it would go through the Salang Pass, the route connecting northern and southern Afghanistan, before reaching Kabul.
Hasib Danish Alikozai contributed to this report.