ISLAMABAD (Reuters) - Pakistani opposition leader Shehbaz Sharif was arrested on Friday in a longstanding corruption case, the country’s anti-graft agency said, nine days before crucial by-elections are due to be held.

FILE PHOTO: Shehbaz Sharif, brother of ex-prime minister Nawaz Sharif, and leader of Pakistan Muslim League - Nawaz (PML-N) leaves after attending the oath taking ceremony of the newly elected members of the National Assembly (Lower House of Parliament) at the Parliament house in Islamabad, Pakistan August 13, 2018. REUTERS/Faisal Mahmood

His brother, ousted Prime Minister Nawaz Sharif, was sentenced earlier this year to 10 years in prison by the same agency after the Supreme Court removed him from power.

Friday’s arrest, by agents of the National Accountability Bureau (NAB) in Lahore, involved a case of alleged corruption in a low-cost housing scheme, called Aashyana (Shelter), when Shehbaz Sharif was chief minister of Punjab province.

“NAB Lahore has arrested former chief minister of Punjab Shehbaz Sharif in Aashyana company case. NAB will produce the former chief minister of Punjab in the honorable accountability court tomorrow,” a statement from the agency said.

Information Minister Fawad Chaudhry welcomed the arrest and offered the agency any help it needed.

“This step today is a big step,” he told reporters. New Prime Minister Imran Khan’s party campaigned on an anti-corruption platform.

Nawaz Sharif has denounced corruption cases against him and his party’s leaders as politically motivated, and both brothers deny any wrongdoing. Nawaz Sharif was released from prison last month pending an appeal against his conviction.

The former prime minister was arrested 10 days before the July 25 general election, which was won by cricket star turned politician Imran Khan, who now leads the new government.

The Sharifs’ Pakistan Muslim League-Nawaz came in second place in the election. Their party, along with all other major opposition parties, denounced the polls as rigged, alleging the military and courts of tipping the scale in favor of Khan’s party.

The Sharifs’ party accused the new government of using the anti-corruption agency for political victimization.

“The government is afraid that the PML-N isn’t broken despite all the cheap tactics,” party spokeswoman Maryam Aurangzeb said, adding: “It is an attempt to influence the by-election.”

By-elections to fill 11 parliamentary seats and 19 provincial assembly seats are scheduled for Oct. 14. Those seats remain empty because of court-ordered delays and the ability of leading candidates to run in several constituencies at once, but only represent one.

The by-elections could affect the slim majority Khan’s coalition government holds in parliament, though many of the constituencies are considered strongholds of his Pakistan Tehreek-e-Insaf (PTI) party.

The contests are considered to be closer in the provincial assemblies and could result in the PML-N winning back control of Punjab.