Kabul’s Emergency Hospital said on Twitter they had received 27 patients wounded in the blast, including a seven-year-old child.

Witnesses told Reuters the powerful explosion was heard in a northern Kabul neighbourhood, shattering windows in nearby buildings. Ambulances rushed to the spot.

“A blast happened inside a mosque.... the blast has casualties, but the numbers are not clear yet,” Kabul police spokesman Khalid Zadran told Reuters.

The Taliban intelligence official, speaking on condition of anonymity, said the explosion occurred in a mosque among worshippers in Khair Khana area of Kabul.

The Imam of the mosque was among those killed and the toll could still rise, the source added. Intelligence teams were at blast site and investigations were ongoing.

Other officials in the Taliban government did not reply to multiple requests to confirm the number of casualties.