LAHORE, Pakistan — A C.I.A. security officer jailed for killing two Pakistanis on a crowded Lahore street was released Wednesday after weeks of secret negotiations between American and Pakistani officials, a pledge of millions of dollars in “blood money” to the victims’ families, and quiet political pressure by Pakistani officials on the courts.

The fatal shootings by Raymond A. Davis, who was immediately flown out of the country to Kabul, Afghanistan, had ignited a furor here and brought relations between the C.I.A. and Pakistan’s spy service to perhaps their lowest ebb since the Sept. 11 attacks.

Mr. Davis’s release appears to have temporarily cooled frictions between the two wary allies, but it left unresolved many of the irritants that strained ties in the first place. American officials insisted on Wednesday that the C.I.A. made no pledges to scale back covert operations in Pakistan or to give the Pakistani government or its intelligence agency a roster of American spies operating in the country — assertions that Pakistani officials disputed.

The Davis episode was particularly sensitive because of the resentment among Pakistanis who believe that a growing American security contingent roams the country with relative impunity. Many Pakistanis were also furious that for weeks after the shooting American officials appeared to show little public sympathy for the victims.