KABUL (AFP) - The Taliban said on Monday (Oct 4) it had destroyed an Islamic State in Iraq and Syria (ISIS) cell in the Afghan capital, hours after a suspected ISIS attack on a mosque killed five people.
The Taliban overran Kabul seven weeks ago and have set up an interim Afghan government, but still face attacks from the regional branch of the ISIS.
The Taliban's chief spokesman Zabihullah Mujahid said fighters carried out the operation in the north of Kabul on Sunday evening.
"As a result of the operation, which was very decisive and successful, the ISIS centre was completely destroyed and all the ISIS members in it were killed," Mr Mujahid said on Twitter.
Witnesses and Agence France-Presse (AFP) journalists heard blasts and gunfire in the capital at the time of the raid, and images posted to social media showed a large explosion and a fire at the scene.
Kabul resident and government employee Abdul Rahaman told AFP that a "large number" of Taliban special forces attacked at least three houses in his neighbourhood.
"The fighting continued for several hours," he said, adding the sound of weapons kept him awake all night.
"They said they were after Daesh (ISIS) fighters in the area," Mr Rahaman said. "I don't know how many were killed or arrested but the fighting was intense."
The operation took place within hours of a deadly attack targeting a prayer ceremony at the Eid Gah mosque in memory of Taliban spokesman Mujahid's mother, who died last week.
A government cultural commission official, who asked not to be named, told AFP that five people died and 11 were wounded, adding the casualties included both civilians and Taliban members.
"We have also arrested three people in connection with the blast," he said.
According to the official, the device was placed at the entrance to the mosque and detonated as mourners were leaving after offering condolences to Mr Mujahid and his family.
A witness at the mosque, who asked not to be identified, told AFP that Sunday's attack at the entrance was carried out by a single suicide bomber.
Just outside the eastern gate, a dark patch was visible on the ground where the explosion took place and bullet holes could be seen in a wall.
The witness said a group of Taliban members - including senior figures - inside the mosque grounds came under fire after the blast, taking two casualties.
He added that two Taliban units mistakenly opened fire on each other in the confusion following the explosion, but interior ministry spokesman Qari Sayed Khosti denied there had been any gunfire.
"A suicide bomber detonated his explosives among the crowd killing three people and wounding a dozen," he said.
Trails of blood into the mosque, as well as two red pools where the witness said the injured fighters were treated inside, were seen by AFP reporters on Monday.
On Monday, Mr Mujahid told AFP that an investigation was still ongoing but "initial information suggests that Daesh-linked groups may have carried out the attack".
The Taliban and the Afghanistan branch of ISIS - known as the ISIS-Khorasan - are both hardline Sunni Islamist militant groups. But they differ on the issues of religion and strategy, which has led to bloody fighting between the two.