At least seven people have been killed following an attack by a suicide bomber in the Afghan capital Kabul.

Officials said the attack targeted a crowd gathered to commemorate a political leader from the mainly Shia Hazara minority.

One police officer and six civilians were killed and at least 15 civilians wounded when a suicide bomber blew himself up, according to an interior ministry spokesman.

Kabul police chief Mohammad Daud Amin said that the bomber detonated his explosive device at a checkpoint "after being identified by police."

"The bomber failed to get inside to target the gathering," he said.

The crowd had gathered for the anniversary celebrations of the death of Abdul Ali Mazari, a Hazara political leader killed by the Taliban in 1995.

A string of attacks on Shia mosques and Hazara gatherings has been claimed by an affiliate of Islamic State, although many Afghan and Western security officials say they doubt the group works alone.

In December, dozens of people were killed in a suicide attack on a Shia cultural centre claimed by Islamic State and two months earlier two separate mosque attacks killed at least 72 people.

The attack came less than two weeks after President Ashraf Ghani called on the Taliban to join peace talks to end more than 16 years of the latest phase of the Afghan war.