A security source told Al Jazeera that the commander of the Kabul Corps had been killed in clashes between government forces and attackers who bombed a military hospital in Kabul, while the transitional government accused ISIS of the attack.

Al-Jazeera correspondent Jama Noor quoted an Afghan official as saying that the victims of the bombings and clashes in the vicinity of the Sardar Muhammad Dawood Khan Military Hospital had risen to 23, and about 50 others were wounded.

The reporter indicated - quoting medical sources - that 6 people carried out the attack, two of them blew themselves up in front of the hospital, while 4 were holed up inside one of the departments, where clashes took place with the security forces, in which the military official, Mawlawi Hamdallah, was killed.

A hospital worker who managed to escape from the scene said that he heard a loud explosion, followed by a few minutes of shooting, and about 10 minutes later another explosion sounded.

No party has claimed responsibility for the attack, but the assistant spokesman for the Afghan government confirmed - in a brief statement - that ISIS was behind the attack.

The official "Bakhtar" news agency had quoted witnesses as saying that fighters from the Islamic State group entered the hospital and clashed with security forces.

It is noteworthy that the Islamic State - which has carried out a series of attacks on mosques and other targets since the Taliban took control of Kabul in August - had attacked the hospital in 2017, killing more than 30 people.

Last month, the organization had also claimed a bombing targeting a Shiite mosque in the city of Kandahar, which left dozens dead and wounded.

And at the beginning of last October, a person was killed and others wounded in an explosion inside a religious sciences school in the city of Khost (east of the country).

The Khost bombing coincided with statements made by the governor of the state, Muhammad Nabi Omari, in which he announced the arrest of 14 ISIS elements who were planning to carry out attacks in the state.