* Court document says doctor jailed for aiding militants
* Officials had cited CIA links
* Case has strained US-Pakistan ties (Adds U.S. efforts to win Afridi's release)
By Jibran Ahmad
PESHAWAR, Pakistan, May 30 (Reuters) - A Pakistani doctor who helped the United States find Osama bin Laden was imprisoned for aiding militants and not for his links to the CIA, as Pakistani officials had said, according to a court document.
A court in the Khyber tribal region near the Afghan border jailed Shakil Afridi for 33 years last week. Pakistani officials said the decision was based on treason charges for aiding the CIA in its hunt for the al Qaeda chief.
But the judgment document made available to the media on Wednesday states that Afridi was jailed because of his close ties to the banned militant group Lashkar-e-Islam, which amounts to waging war against the state.
It is unclear why Pakistani officials first said Afridi was jailed over his links to the CIA. The government may have wanted to show a largely anti-American public that Pakistan will not tolerate any cooperation with the U.S. spy agency, especially at a time of troubled relations with Washington.
"There was a lot of friction because of this case with the United States. This appears to be an effort to patch things up with the United States, while also satisfying the people of Pakistan that Afridi has been punished," said Mansur Mehsud, director for research at Islamabad's FATA Research Center.
"The mindset is being managed, confusion created, about what exactly he has done."
While the document said there was evidence that Afridi "has been shown acting with other foreign intelligence agencies", it noted the court in Khyber had no jurisdiction to act on that.
But the court recommended that the evidence may be produced before an appropriate court for further proceedings.
The Afridi case has further strained ties between the United States and Pakistan, already damaged by a series of events, including a NATO cross-border air attack last November that killed 24 Pakistani soldiers.
In Washington, government sources said the United States is exerting strenuous efforts to win Afridi's release from jail.
U.S. officials hail Afridi as a hero who helped the CIA track down bin Laden, who was killed by U.S. Navy SEALs in a raid in the Pakistani town of Abbottabad in May last year.
Defense Secretary Leon Panetta suggested on Sunday that the jailing of Afridi would hurt efforts to repair relations between the United States and Pakistan.
Many Pakistanis were infuriated by the U.S. raid to get bin Laden in a town just a two-hour drive from the capital, Islamabad and they see Afridi as a villain who conspired against the state and brought unwanted scrutiny of Pakistan's attitude to militants.
Pakistani officials describe bin Laden's long presence in the garrison town of Abbottabad as a security lapse and reject suggestions that members of the military or intelligence services were complicit in hiding him there.
Pakistan joined the U.S. war on militancy after the Sept. 11, 2001, attacks on the United States. But U.S. officials often describe Islamabad as an unreliable partner and demand tougher action against militant groups based along its border with Afghanistan.
Critics also say the judicial system has failed to take decisive action against militants. Convictions for terrorism are rare in the South Asian nation, recipient of millions of dollars in U.S. aid. Appeals drag on for years.
Pakistan says it has made big sacrifices fighting militants.
The charges of aiding militants could give Afridi a greater chance to successfully challenge the verdict. Pakistan, for its part, can both claim it is cracking down on militancy and ease the outcry in the United States over Afridi's imprisonment.
One of the doctor's lawyers, Samiullah Afridi, was baffled after reading the verdict, which he also received on Wednesday.
"These charges against him are very different from the ones we were told earlier," he told Reuters.
"The earlier allegations against him were very serious. We deal with issues like this every day in the courts, of people accused of helping militant groups. So it's not that big an issue for us to defend."
Afridi had been working with the CIA for years before the bin Laden raid, providing intelligence on militant groups in Pakistan's unruly ethnic Pashtun tribal region, said a former Pakistani security official.
Afridi's brother, Jamil, described the treason charges as baseless and said the doctor was being made a scapegoat. (Additional reporting by Qasim Nauman in ISLAMABAD and Mark Hosenball in WASHINGTON; Writing by Michael Georgy; Editing by Angus MacSwan)