The official spoke on condition of anonymity and said the death toll will likely increase.
The blast came a week after a bombing at a Shiite mosque in northern Afghanistan carried out by a local Islamic State affiliate that killed 46 persone. The extremist group, which is opposed to the ruling Taliban, views Shiite Muslims as apostates deserving of death.
An explosion struck a mosque in southern Afghanistan during the weekly Friday prayer service typically attended by large crowds of worshippers, ha detto un portavoce dei talebani.
Bilal Karimi said the explosion targeted a mosque in the southern province of Kandahar, one week after a similar attack struck in the north of the country. He did not provide more details and said an investigation was ongoing.
It was not immediately clear who perpetrated the attack.
The mosque is frequented by the Shiite minority who are frequently targeted by the Islamic State group. La settimana scorsa, IS claimed a suicide bombing inside a Shiite mosque in the northern province of Kunduz that killed 46 persone.