The terrorist militia "Islamic State" (IS) has claimed responsibility for the attack on a Sikh temple in the Afghan capital Kabul.

The militant Islamist group said on its Telegram channel that the attack was revenge for derogatory comments made by an Indian politician about the Prophet Mohammed.

Gunmen entered the Gurudwara, the Sikh place of worship, on Saturday and severely damaged the building with explosive devices and fire.

According to the Afghan interior ministry, two people died and seven were injured.

IS claimed the attackers injured or killed around 50 people, including Hindus, Sikhs and militant Islamist Taliban security forces, who surrounded the temple and eventually secured the site.

The Sikhs are also a religious minority in Afghanistan.

They and their facilities have been repeatedly attacked by Islamist militants.

According to the Interior Ministry on Saturday, a group of armed "rebels" used hand grenades before entering the Gurudwara, causing a fire.

Taliban security forces then surrounded the building.

According to the spokesman, the attackers had previously tried to detonate a car bomb in a crowd, but the detonation was triggered prematurely.