Gunmen launched a pre-dawn raid on a military compound in Kabul on Monday, officials said, in an assault that caused multiple casualties and marked the third major attack in the city in recent days.