'Illegally held' Pakistanis freed