Insurgents launched a complex assault against the American Embassy and the nearby NATO headquarters on Tuesday, pelting the heavily guarded compounds with rockets in an attack that raised new questions about the security of Afghanistan s capital and the Westerners working there.