The ministry of defense spokesman Gen. Dawlat Waziri said a group of five insurgents launched a coordinated attack on a compound of the 111th division of the army in Qargha area.
He said at least two of the suicide bombers carried out a suicide attack, two of them were shot dead and another one has been arrested alive.
Gen. Waziri further added that the Afghan armed forces seized a rocket launcher, four Ak-47 rifles, and a suicide attack vest during the operation.
According to Gen. Waziri, at least five Afghan soldiers also lost their lives in the attack and and ten others have sustained injuries.
The local residents and the eyewitnesses had earlier said that the target of the attack is the 111th division of the army located close to the military academy.
Earlier, reports had also emerged that the militants have attacked the main military academy, Marshal Fahim Military Academy. But the security officials are saying that the target of the attack was not the academy but the an army compound has been attacked close to it.