“I assure you we are committed to determining if any laws were broken or policies violated,” he said. Spokesmen for General Petraeus and Gen. Stanley A. McChrystal, the top American commander in Afghanistan, declined to comment. Mr. Furlong remains at his job, working as a senior civilian Air Force official.

A senior defense official said that the Pentagon decided just recently not to renew the contract, which expires at the end of May. While the Pentagon declined to discuss the program, it appears that commanders in the field are in no rush to shut it down because some of the information has been highly valuable, particularly in protecting troops against enemy attacks.

With the wars in Iraq and Afghanistan, the expanded role of contractors on the battlefield — from interrogating prisoners to hunting terrorism suspects — has raised questions about whether the United States has outsourced some of its most secretive and important operations to a private army many fear is largely unaccountable. The C.I.A. has relied extensively on contractors in recent years to carry out missions in war zones.

The exposure of the spying network also reveals tensions between the Pentagon and the C.I.A., which itself is running a covert war across the border in Pakistan. In December, a cable from the C.I.A.’s station chief in Kabul, Afghanistan, to the Pentagon argued that the military’s hiring of its own spies could have disastrous consequences, with various networks possibly colliding with one another.

The memo also said that Mr. Furlong had a history of delving into outlandish intelligence schemes, including an episode in 2008, when American officials expelled him from Prague for trying to clandestinely set up computer servers for propaganda operations. Some officials say they believe that the C.I.A. is trying to scuttle the operation to protect its own turf, and that the spy agency has been embarrassed because the contractors are outperforming C.I.A. operatives.

The private contractor network was born in part out of frustration with the C.I.A. and the military intelligence apparatus. There was a belief by some officers that the C.I.A. was too risk averse, too reliant on Pakistan’s spy service and seldom able to provide the military with timely information to protect American troops. In addition, the military has complained that it is not technically allowed to operate in Pakistan, whose government is willing to look the other way and allow C.I.A. spying but not the presence of foreign troops.