Afghanistan, NATO and the Warsaw Pact