The blast targeted Wazir Akber Khan Mosque in Kabul when worshipers had gathered for evening prayers, according to Afghan's interior ministry official.
A bomb exploded inside a mosque in the Afghan capital Kabul on Tuesday, killing two people, including the mosque's prayer leader, and wounding two others an Afghan official said.
Tariq Arian, spokesman for the Afghan Interior Ministry, said the bomb targeted the Wazir Akber Khan Mosque when worshipers had gathered for evening prayers.
Mullah Mohammad Ayaz Niazi was one of two people killed in the attack, Arian said. He was wounded in the attack and died later at a hospital.
Niazi was a well known cleric who was active as Friday prayer leader at the mosque.
No one immediately claimed responsibility for the attack, but the Daesh terror group has been active in Kabul in recent weeks and has in the past carried out attacks inside mosques in Afghanistan.
Daesh claimed responsibility for the roadside bomb attack against a bus belonging to a local TV station in Kabul on Saturday, killing two employees of the station.
Attacks against worshippers have increased in Afghanistan: Last month, an unknown number of attackers stormed a mosque in northern Parwan province, killed 11 worshipers and wounded several others.