Maj. Gen. Mohammad Bagheri stressed the importance of bringing the perpetrators of the "heinous act" to justice. The attack, he continued, highlights the threat of "takfiri terrorism".
The Iranian military commander called for unity, security, and stability in the region, noting that the formation of an inclusive government would help restore peace in Afghanistan.
Bagheri also extended his condolences to the families of those killed and injured in the attack.
On 8 October, a bomb exploded at a Shia mosque during Friday prayers, leaving around 150 people dead and 200 others injured. Daesh* claimed responsibility for the attack.
The Russian Foreign Ministry has described the attack as a barbaric act aimed at destabilising the country at a new stage in its history.
*Daesh (also known as ISIS/ISIL/IS) is a terrorist organisation outlawed in Russia and many other states.