The four gunmen dressed in police uniforms killed two Afghan police officers guarding a mosque in Qala-e-Najarha area of Kabul city during Friday prayer, a local police officer told Circa.
"At least 20 people were killed and 35 other wounded in the attack so far as one of attacker blew himself up near the mosque," said Kabul Police officer Sharifuddin, who like many Afghans goes by only one name.
The Imam Zaman mosque, is one of the biggest and main mosque of Shiite Muslim in Kabul city, where hundreds of people go for Friday prayer.
The attack was carried out by three or four men and that one of them blew himself up outside the mosque, Najib Danish, Interior Ministry spokesman told the local TV, TOLO news.
The Police Special Unit has cleared the area and all attacker have been killed, Danish added.
The eyewitness said many wounded and dead bodies were shifted through ambulances from the area while security forces cordoned off the spot and no was allowed to go there.
"I was there when I heard a huge explosion and then heavy firing was started, people were crying to run and got shelter in a near market" Sharafat Wardag, an eyewitness told Circa.
The attack on the mosque ended after five hours of gun battle. According to police on the scene, the attackers were gunned down by the security forces.
Islamic State of Syria and Iraq Khorasan chapter (ISIS-K) claimed responsibility of the attack.
"Our militants targeted Shiite Muslim in the attack," said in a statement released by group news wire Amaq.
Afghan Taliban condemned the attack in a statement but blamed the Afghan intelligence agency for the attack.
Zabihullah Mujahid, Spokesman of Afghan Taliban said, "The Taliban have no link with the attack on mosque in Kabul and Afghan intelligence is behind these kind attack."
Afghan President Ashraf Ghani condemned the barbaric attack and termed it inhuman act to targeted innocent people during Friday prayer.
The Friday attack on mosque in Kabul was the first suicide bombing in Afghanistan after President Trump announced Afghanistan and South Asia new policy to send more US troops and eliminate terrorists hideouts from Afghanistan.
As Circa previously reported, Trump noted three major factors changed his opinion on Afghanistan. Largely, the need for an honorable end to the war which respects those who have sacrificed over the years. Understanding the possibility that a quick withdrawal could leave a vacuum to be filled by nefarious actors, similar to what happened in Iraq with the Islamic State because of the 20 terrorist groups still operating in Afghanistan and Pakistan.
The Taliban said Trump's Afghanistan plan is 'just wasting American soldiers'
How Trump took a drastic shift in Afghanistan
New ISIS video allegedly features the son of an American veteran