In this photo provided by the office of Pakistan Tehreek-e-Insaf party, Pakistani politician Imran Khan, chief of Pakistan Tehreek-e-Insaf party, delivers his address in Islamabad, Pakistan, Thursday, July 26, 2018. Khan declared victory Thursday for his party in the country's general elections, promising a "new" Pakistan following a vote that was marred by allegations of fraud and militant violence. (Tehreek-e-Insaf via AP)

In this photo provided by the office of Pakistan Tehreek-e-Insaf party, Pakistani politician Imran Khan, chief of Pakistan Tehreek-e-Insaf party, delivers his address in Islamabad, Pakistan, Thursday, July 26, 2018. Khan declared victory Thursday for his party in the country's general elections, promising a "new" Pakistan following a vote that was marred by allegations of fraud and militant violence. (Tehreek-e-Insaf via AP)

ISLAMABAD (AP) — Former cricket star Imran Khan declared victory Thursday in Pakistan’s parliamentary election and vowed to run the country “as it has never before been run” by fighting corruption, seeking regional cooperation and forging a new relationship with the U.S. that was not “one-sided.”

TV stations reported Khan and his Tehreek-e-Insaf party, or PTI, maintained a commanding lead from Wednesday’s balloting. But his leading rival, Shahbaz Sharif, rejected the outcome, citing allegations of vote-rigging.

ADVERTISEMENT

Pakistan’s election commission struggled with technical problems and had to revert to a manual count, delaying the announcement of final results until Friday. That left unclear whether the PTI will have a simple majority in the National Assembly or have to form a coalition government.

But that didn’t stop the 65-year-old Khan from proclaiming his triumph in an address to the nation, in which he pledged to create an Islamic welfare state to provide education and employment for the poor to fulfill a campaign promise to create 10 million jobs.

“Today in front of you, in front of the people of Pakistan, I pledge I will run Pakistan in such a way as it has never before been run,” Khan said, vowing to wipe out corruption, strengthen institutions he called dysfunctional and regain national pride by developing international relationships based on respect and equality.

While Khan appeared casual and conciliatory in his speech, his words were laced with passion. He said the United States treats Pakistan like a mercenary, giving it billions of dollars to fight the war on terrorism in a region beset with militant extremists.

“Unfortunately, so far our relations were one-sided. America thinks that it gives Pakistan money to fight for them. Because of this Pakistan suffered a lot,” said Khan, who has been critical of the U.S.-led conflict in neighboring Afghanistan.

He offered nothing to suggest an improvement in Pakistan’s already testy relationship with Washington since President Donald Trump’s tweets in January that accused Islamabad of taking U.S. aid and returning only lies and deceit.

Seeking good relations with his neighbors, Khan addressed Pakistan’s rival, India. The two nuclear powers have had a long-running conflict over the disputed region of Kashmir.

“Take one step toward us and we will take two steps toward you,” he said in a peace offering while still decrying widespread human rights abuses in Kashmir.

ADVERTISEMENT

Khan also advocated an open border policy with Afghanistan, even suggesting the two countries embrace a “European Union” type relationship. The plan seems unlikely, with Pakistan’s military already building hundreds of border outposts and an accompanying fence along its western frontier with Afghanistan despite often-violent opposition from Kabul.

Khan focused on what he wanted to do for the poor in Pakistan and his vision of a country that bowed to no one, where everyone was equal under the law and taxes were paid by the rich to fund services for the less fortunate.

His campaign message of a new Pakistan seemed to resonate with young voters in a country where 64 percent of its 200 million people are under 30.

Khan said the elections were the most transparent and promised to investigate every complaint of irregularity that his opponents presented.

“It is thanks to God (that) we won and we were successful,” he said.

More than a dozen TV channels projected the PTI would win as many as 119 seats of the 270 National Assembly seats that were contested, although the broadcasters did not disclose their methodology. The rest of the 342-seat parliament includes seats reserved for women and minorities. Voting for two seats was postponed after one candidate died during the campaign and another was disqualified.

Although rights groups and minorities expressed worries ahead of the voting about radical religious groups taking part, moderate voices seemed to have prevailed: None of the 265 candidates fielded by the outlawed Lashkar-e-Taiba won. That includes the son of co-founder and U.S.-designated terrorist Hafiz Saeed, who has a $10 million U.S. bounty on his head.

The candidates campaigned under the little known Allah-o-Akbar Tehreek party because Lashkar-e-Taiba is banned.

Even if Khan’s party wins a simple majority, he would need to wait until the president convenes the parliament to swear in the new lawmakers — traditionally within a week.

He also faces opposition over the result from Sharif. He heads the Pakistan Muslim League, the party of his older brother, former Prime Minister Nawaz Sharif, who is in prison on corruption charges. TV projections give his party barely 61 seats.

The younger Sharif tweeted that “our democratic process has been pushed back by decades,” adding that “had the public mandate been delivered in a fair manner, we would have accepted it happily.”

Complaints also emerged from the independent Human Rights Commission, which issued a statement saying that women were not allowed to vote in some areas.

In other areas, it said, “polling staff appeared to be biased toward a certain party,” without elaborating. In the days before the election, leading rights activist I.A. Rehman called the campaign “the dirtiest” in Pakistan’s bumpy journey toward sustained democracy.

Analysts have expressed concern that disgruntled losers could create instability for the incoming government, which must deal with a crumbling economy, crippling debt and a raging militancy.

The voting was marred by a suicide bombing in the southwestern city of Quetta, the Baluchistan provincial capital, that killed 31 people as they waited to vote. A bombing in the same province earlier this month killed 149 people, including a candidate for office. Baluchistan has been roiled by relentless attacks, both by the province’s secessionists and Sunni militants who have killed hundreds of Shiites there.

The election marked only the second time in Pakistan’s 71-year history that one civilian government has handed power to another.

There were widespread concerns during the campaign about manipulation by the military, which has directly or indirectly ruled Pakistan for most of its existence. The military had deployed 350,000 troops at the 85,000 polling stations.

In a tweet, Pakistan’s military spokesman Gen. Asif Ghafoor called allegations of interference “malicious propaganda.”

___

Associated Press Writer Zarar Khan in Islamabad contributed to this report.