A lawyer says the suspected Pakistani mastermind in the 2008 Mumbai attacks has left a jail near Islamabad following a court order that he be set free pending trial.

Attorney Rizwan Abbasi says his client, Zaki-ur-Rehman Lakhvi, was out of detention on Friday and described it as a "triumph for law and justice."

A Pakistani court first ordered Lakhvi's release March 13 but he remained in detention amid mounting pressure on Pakistan to more actively confront Islamic militants. He was ordered released for a second time on Thursday.

Lakhvi, who was first granted bail last December, is one of seven suspects on trial in Pakistan in connection with the attacks that killed 166 people. He was arrested in 2009.