Slain dictator Moammar Gadhafi's intelligence chief should face a war crimes trial in Libya, judges at the International Criminal Court ruled Friday.

The decision in the case of Abdullah al-Senoussi, already convicted of one aircraft bombing and suspected in a second major incident, essentially endorses Libya's legal system as fair and functional enough to handle his complex trial for war crimes allegedly committed during the uprising against Gadhafi two years ago.

The ruling comes just a day after the country's prime minister was kidnapped briefly by one of the many militias active in the country.

The former spy chief was Gadhafi's brother-in-law and part of his inner circle. He is also wanted in Libya for his alleged role in the 1996 massacre of more than 1,200 people at the Abu Salim prison.

Under international law, each country has the first right — and the obligation — to try its suspected war criminals. The pretrial chamber found that Libyan authorities are "willing and able" to prosecute the al-Senoussi, and therefore he cannot be tried at the ICC.

ICC judges have previously resisted giving up jurisdiction in the cases of al-Senoussi and of Gadhafi's son Seif al-Islam, both of whom are being held in Libya, saying the country's legal system simply wasn't ready.

"This is a shocking decision which we will immediately appeal," said al-Senoussi's lawyer, Ben Emmerson.

Emmerson said there is "overwhelming evidence...that the Libyan justice system is close to collapse and that it is incapable of conducting fair trials of any Gadhafi-era officials."

Al-Senoussi is accused by the ICC and Libyan prosecutors of crimes against humanity for the murder and persecution of protesters in the early days of the uprising that eventually toppled Gadhafi in 2011.

Separate from the ICC case, he has been accused of complicity in blowing up a Pan Am jumbo jet over Lockerbie, Scotland in 1988 and a French airliner over Niger the following year — causing hundreds of deaths.

The ICC judges said they took a number of factors into account in their decision, notably that al-Senoussi is being held by the national government, which Seir al-Islam is held by a regional authority.

Court spokesman Fadi El Abdallah said Friday's decision has no bearing on Seif al-Islam's case. However, it raises the question of why Seif al-Islam couldn't be tried in Libya too, if forces in the mountain region of Zintan turn him over to national authorities.

Reasons judges cited to believe Libya is ready to try al-Senoussi properly include "the quantity and quality of the evidence" collected by local prosecutors, and the track record of Libyan courts in other prosecutions.

"The spotlight for now is on Libya to make good on its promise to respect Senoussi's rights," Richard Dicker of Human Rights Watch said Friday.

Al-Senoussi was arrested in March 2012 at Mauritania's international airport, disguised as a Tuareg chieftain in flowing robes and a turban. He was extradited to Libya later that year.

"The effect of this morning's decision is to condemn Mr. al-Senoussi to face mob justice without even access to a lawyer, and in which the inevitable outcome is the death penalty," his lawyer Emmerson said.


Associated Press reporter Mike Corder contributed to this story from The Hague, Netherlands.