Military officials with access to intelligence reporting on the subject said about 40 of Bagram 's prisoners were Pakistanis , Arabs and other foreigners ; some were previously held by the C.I.A . in secret interrogation centers in Afghanistan and other countries .