Pakistani officials say they have arrested a foreigner suspected of links with the al-Qaida terrorist network .