At least 25 people have been killed in an attack on a Sikh-Hindu temple in Kabul, with the Islamic State group claiming responsibility for the atrocity.

"Unfortunately 25 civilians were killed and eight wounded in today's attack," interior ministry spokesman Tariq Arian said in a statement. 

He added that one attacker had also been killed and 80 people rescued from the temple in the centre of the Afghan capital.