At least seven people have been killed in an attack on the Afghan communications ministry in central Kabul, breaking months of relative calm in the capital and underlining the continued security threats despite efforts to open peace talks with the Taliban.