WASHINGTON  The Central Intelligence Agency has terminated a contract with the security company formerly called Blackwater Worldwide that allowed the company to load bombs on C.I.A. drones in Pakistan and Afghanistan, intelligence officials said Friday.

The contract gave employees with the company an operational role in one of the Central Intelligence Agency’s most significant covert programs, which has killed dozens of militants with Predator and Reaper drones. The company’s involvement highlighted the extent to which the C.I.A. had outsourced critical jobs to private companies since the 9/11 attacks.

The contract with the company, now called Xe Services, was canceled this year by Leon E. Panetta, the C.I.A. director, according to a C.I.A. spokesman. In August, The New York Times first revealed the existence of the contract, which was run by a division of the company called Blackwater Select, which handles classified contracts.

George Little, the C.I.A. spokesman, said that Mr. Panetta had ordered that the agency’s employees take over the jobs from Xe employees at the remote drone bases in Pakistan and Afghanistan, and that Mr. Panetta had also ordered a review of all contracts with the company.