ISLAMABAD (AFP) Pakistan said Thursday it would examine a request from the Afghan government to hand over a top Taliban commander in its custody, but left open the door to putting him on trial in Pakistan. Mullah Adbul Ghani Baradar, said by US officials to be second only to Taliban leader Mullah Mohammad Omar, was captured in Pakistan in what US media reports said was a joint raid by US and Pakistani intelligence agents. Pakistan will make legal scrutiny and also investigate the criminal acts done by Mullah Baradar including his illegal entry into Pakistan, the interior ministry said in a statement. The request of Afghan authorities will be examined according to the law and if Mullah Baradar has committed any crime inside Pakistan, he will be first tried in Pakistan, it added. The Afghan government said that Pakistan had agreed to extradite Baradar and other Taliban militants currently in Pakistani prisons. Afghan Interior Minister Hanif Atmar held talks in Islamabad on Wednesday with Pakistani government officials and the director of the US Federal Bureau of Investigation (FBI). In talks with Pakistani Prime Minister Yousuf Raza Gilani and Interior Minister Rehman Malik, a Kabul statement said, agreements had been reached on counter terrorism, drugs, border security and exchange of prisoners. Interior Minister Atmar also reported that the government of Pakistan has accepted the proposal of extradition of Mullah Baradar and all other Taliban operatives currently in Pakistani prisons, the presidency said. Under an agreement between the two countries, Pakistan has agreed to extradite the prisoners, it added. Afghan interior ministry spokesman Zemarai Bashary said Baradar was one of 42 people, including other Taliban figures, Kabul wants returned from Pakistan, which is under strong US pressure to crack down on militants in both countries. Another Taliban commander, Mullah Abdul Kabir, is also believed to have been detained by Pakistani security forces in recent weeks, but Islamabad has yet to officially confirm his detention.