A Pakistani official said the decision was taken in view of deteriorating relations between Pakistan and Afghanistan and applied only to Afghan nationals and not students from other countries