Nato pulls out of Afghan ministries after Kabul attack