ISLAMABAD, Pakistan — After weeks of legal setbacks, Pakistan’s former military ruler, Pervez Musharraf, won a small victory on Monday amid media speculation that the military is seeking to free the former army chief from a tangle of court cases.

An antiterrorism court in Rawalpindi, Pakistan, granted Mr. Musharraf bail on charges relating to the death of former Prime Minister Benazir Bhutto, who was assassinated in 2007 while Mr. Musharraf was in power.

His lawyer, Salman Safdar, said bail, which was set close to $20,000, represented Mr. Musharraf’s “first legal relief” since his dramatic return from exile in March and subsequent arrest.

The decision will not, however, set the former military leader free. He remains under house arrest at his luxury villa outside Islamabad in connection with two other cases: the killing of a Baloch nationalist leader in 2006 and the firing of senior judges in 2007.