Pakistan rearrested former President Pervez Musharraf on Thursday, a day after he was granted bail in other cases and appeared ready to leave the country.

In the latest charge, Mr. Musharraf is accused of ordering a 2007 commando operation against a Islamabad mosque to crack down on armed militants. The raid left a cleric and several other people dead.

A complaint against Mr. Musharraf in the so-called Red Mosque case was registered two weeks ago on the orders of a judge.

The arrest came after the former president had been granted bail in three other cases and his lawyer said he was free to leave the country.

One of the cases is a murder charge in connection with the assassination of opposition leader and former Prime Minister Benazir Bhutto. She was killed in a gun and bomb attack after leaving a political rally in Rawalpindi in December 2007.

Mr. Musharraf has pleaded not guilty to the charges, which include murder, conspiracy to murder and facilitation of murder.

The former leader has blamed Ms. Bhutto's assassination on Taliban militants and said he warned her of militant threats to her safety.

Mr. Musharraf took power in a 1999 coup and ruled as president until resigning under threat of impeachment by his opponents in 2008 and going into exile.

He returned to Pakistan in March after nearly four years in self-imposed exile in a bid to resurrect his political career.