KABUL (AFP) - A gunman in Afghan army uniform opened fire inside Kabuls defence ministry Monday, killing two soldiers and wounding seven in an audacious strike at the heart of govt claimed by the Taliban. The attack, which the militants said was aimed at Frances visiting defence minister Gerard Longuet, was the third major assault on Afghan security targets in four days and one of the worst security breaches in years. A person in Afghan army uniform opened fire on his comrades, killed two soldiers, injured seven others, then was targeted himself and was brought down, Afghan army spokesman General Mohammad Zahir Azimi told AFP. After his death, the attacker was found to be wearing a suicide vest, he said. One of those killed was a bodyguard of the deputy defence minister, while those injured included an aide to the defence minister and a secretary to the armys chief of staff, said a senior security official speaking anonymously. Defence Minister Abdul Rahim Wardak was not injured in the shootout, a western security source said separately, but it is thought that the suicide bomber was shot dead close to the ministers office. Earlier, a military source had told AFP on condition of anonymity that three insurgents had managed to enter the building, which faces President Hamid Karzais palace, and all were killed. The ambush inside the tightly-secured compound is thought to be the most high-profile security breach since a failed attempt on Karzais life in 2008.