Security personnel patrol near the site of a deadly attack outside the Rural Rehabilitation and Development Ministry in Kabul, Afghanistan. Picture: Massoud Hossaini/AP

Kabul, Afghanistan - The Taliban stormed a police checkpoint in Afghanistan's eastern Nangarhar province and killed seven policemen, a provincial official said Monday.

The attack took place the previous night in the district of Ghani Kahil, said the provincial police chief, Ghulam Sanayee Stanikzai. Five Taliban fighters were killed in the attack, he said.

Stanikzai also said that in Khogyani district, also in Nangarhar province, a government airstrike on Sunday night left 20 Taliban fighters dead.

There was no statement from the Taliban on either the Ghani Kahil attack or the airstrike.

Earlier on Sunday, a suicide bomber on foot struck outside the building of the Rural Rehabilitation and Development Ministry in the capital, Kabul, killing seven people and wounding 15.

The Islamic State group claimed responsibility for the attack in a statement Monday on its Aamaq news agency, saying it targeted government employees and warning their attacks will reach "all who help the Crusaders," a term militants use to refer to foreign forces.

An Afghan official said several people were killed and others wounded when a suicide bomber detonated his suicide vest in the country's capital. Picture: Massoud Hossaini/AP

Last month, a suicide bombing near the same ministry killed 12 people and wounded 31 others, mostly government employees.

On Monday, a would-be suicide attacker was shot and killed by police in Kabul before he was able to get close to a gathering of supporters of the country's first vice president, Gen. Abdul Rashid Dostum, according to police spokesman Hashmat Stanekzai. Dostum is currently in Turkey.

No one immediately claimed responsibility for the attack, but both Taliban and the Islamic State group have stepped up their attacks in Kabul.