Islamabad shifts course on Afghan strategy