Stranded Afghans queue to leave Pakistan