The Taliban claimed responsibility for the attacks, saying the British and German embassies and NATO headquarters were the main targets.