But he stopped short of concluding that Pakistani officials leaked the information to the Al-Qaeda-linked Haqqani insurgents. And Gates said such incidents must not derail US relations with Islamabad.

A little over two weeks before ending his 4 1/2-year tenure as Pentagon chief, Gates sat down in his office Monday for an Associated Press interview that touched on a range of issues, including his expectation of a smooth handoff to his designated successor, current CIA Director Leon Panetta.

Gates will retire June 30; Panetta’s Senate confirmation is expected shortly. On Tuesday the Senate Armed Services Committee reported a unanimous voice vote to send his nomination to the floor of the Senate.

The Pakistan intelligence breach has only fueled unease in the US, where officials worry about links between the intelligence service there and some militant groups.

A US official said Monday that after telling Pakistani intelligence about the location of the two compounds, US

drones and satellite feeds showed the militants clearing out the contents at both sites.

“We don’t know the specifics of what happened,” said Gates. “There are suspicions and there are questions, but I think there was clearly disappointment on our part.” As an act of faith to restore relations with Pakistan, US intelligence in recent weeks shared the location of two such compounds believed to contain bomb material held by the Haqqani network. But by the time Pakistani authorities reached the facilities, they had been vacated.

The official, who spoke on condition of anonymity to discuss classified matters, said the assumption was that the Pakistanis had tipped off the Haqqanis.

Trust has been in short supply in the US-Pakistani relationship, highlighted most dramatically by the US

decision not to tell Islamabad in advance of the May 2 Navy SEAL raid on Osama Bin Laden’s compound in Abbottabad, Pakistan, out of fear that they might tip off the Al-Qaeda leader or his protectors.

Daniel Benjamin, the State Department’s counterterrorism coordinator, said Tuesday that Bin Laden “obviously” benefited from a support network inside Pakistan.

Asked whether it was time to take a harder line with Pakistan, Gates counseled patience and noted that the Pakistanis have not forgotten that the US abandoned them in the late 1980s after the Soviets pulled out of Afghanistan.

“We need each other, and this relationship goes beyond Afghanistan,” he said. “It has to do with regional stability, and I think we have to be realistic about Pakistani distrust ... and their deep belief that when we’re done with Al-Qaeda that we’ll be gone, again.” Despite recurring tensions between Washington and Islamabad, and questions by some in Congress about the wisdom of ¨qding spent billions of dollars on aiding Pakistan since the Sept. 11, 2001, terror attacks, Gates said the effort has paid off.

Gates also sounded a cautiously optimistic note about developments in Yemen, where the government and opposition tribes have engaged in armed clashes, pushing the country toward civil war. He said things have calmed down a bit since President Ali Abdullah Saleh left for neighboring Saudi Arabia on June 5 for medical treatment of wounds he suffered in an attack on his compound in Yemen.

“I don’t think you’ll see a full-blown war there,” Gates said. “With Saleh being in Saudi Arabia, maybe something can be worked out to bring this to a close” by finding an accommodation among Saleh’s family, the opposition tribes and the military.

Gates, who originally opposed US military intervention in Libya, predicted that strongman Muammar Qaddafi will fall — “whether it’s of his own volition or somebody takes care of it for him.” By that he meant either the military or his own family could turn against the longtime Libyan leader.

Reflecting on his imminent departure from a job he has described as the most rewarding in his long career of government service — including 27 years at the CIA — Gates said he is confident that Panetta will gain his footing quickly at the Pentagon.

“There is no lapse in terms of somebody getting up to speed on the issues,” Gates said. “Essentially, Leon just changes place in the Situation Room,” referring to the main crisis management room inside the White House.

“He’s been in all the conversations on all the big issues, so there’s just no catch-up time at all for him,” he added.

Gates, 67, who is retiring to his home in Washington state, said without hesitation that he will miss just two things about his job.

“One is the people that I work with, and the other is the troops. I won’t miss anything else.” ___ AP National Security Writer Anne Gearan and AP Intelligence Writer Kimberly Dozier contributed to this report.