The fighting came to an end after the two assailants who breached the compound ran out of bullets and detonated their explosives vests, the official said. He spoke on condition of anonymity because he was not authorised to speak to reporters.