In a statement on Friday, Foreign Ministry Spokesman Bahram Qassemi condemned the attack, and offered condolences to the nation and government of Afghanistan.
He also expressed sympathy with the bereaved families of the victims.
A suicide bomber blew himself up near a mosque in the Afghan capital, Kabul, on Friday, killing at least nine people in an attack on a crowd.
Several other civilians were also wounded when the bomber was stopped at a security checkpoint in the Mosalla-e Mazar area in Kabul, said an interior ministry spokesman.
The suicide bomber blew himself up while trying to enter a gathering commemorating the anniversary of the death of Abdul Ali Mazari, a former Afghan leader who was killed by the Taliban in 1995.
There was no immediate claim of responsibility, but Kabul has seen a spate of deadly attacks carried out by both the Taliban and ISIS in recent months.