KABUL — Secretary of State John F. Kerry arrived in the Afghan capital Friday to push for a resolution to a weeks-long political crisis stemming from presidential elections marred by fraud. The dispute over a runoff last month has US officials worried that Afghanistan, already roiled by a Taliban-led insurgency, could collapse before its first democratic transfer of power.
Kerry met with both candidates — former foreign minister Abdullah Abdullah and former World Bank executive Ashraf Ghani. He also met with President Hamid Karzai and UN officials.
The United States has threatened to cut financial assistance to Afghanistan, which relies heavily on foreign aid to stay afloat, if the two sides do not end the impasse.
‘‘We are at a very, very critical moment for Afghanistan,’’ Kerry said Friday in Kabul before his meeting with the head of the UN mission in Afghanistan, Jan Kubis. ‘‘The future potential of a transition hangs in the balance.’’
The election stalemate has gripped Afghanistan for nearly month since Abdullah, who won the first round of voting in April but fell short of a majority, accused the country’s election commission of helping the government secure a victory for his opponent in the June 14 runoff.
Preliminary results released by the Independent Election Commission Tuesday showed Ghani in the lead with 56 percent, a stunning turnaround from the first round, in which he secured just 32 percent. In the first round April 5, Abdullah won 45 percent of the vote, but now he trails Ghani with just 43 percent.
Ahmad Yusuf Nuristani, chairman of the election commission, admitted that the results had been marred by widespread vote-rigging and cautioned that the figures were not final tallies.
But the commission’s announcement had already incensed Abdullah and his supporters, who rallied around him at a massive demonstration in Kabul on Wednesday. They called the preliminary results a coup and urged Abdullah, a former top aide to legendary Afghan mujahideen commander Ahmed Shah Massoud, to declare a parallel government.
Kerry said the results that had been announced ‘‘are neither authoritative nor final.’’
‘‘No one should be stating a victory at this point,’’ Kerry said before his meeting with Abdullah.
Abdullah, who is of mixed Pashtun and Tajik heritage, draws much of his support from the minority ethnic Tajik communities in the northern and western parts of the country. Ghani, a former finance minister, is an ethnic Pashtun from the eastern province of Logar and is popular among Pashtun populations in the east and south. Pashtuns are Afghanistan’s largest ethnic group, accounting for about 42 percent of the population, and have traditionally ruled the country.
Talk of a parallel government has raised concerns among US officials that the Afghan state could splinter along territorial or ethnic lines, much as it did following the Soviet withdrawal from the country in 1989. Then, Afghanistan descended into a hellish state of civil war, paving the way for the Taliban takeover of wide swaths of the country in 1996.
‘‘Resorting to violence, as happened in our dark past, is not acceptable to Afghans nor to the world,’’ said Daoud Sultanzoy, a senior aide to Ghani. ‘‘We have to remove this psychology of war from our minds.’’
In a briefing for reporters Friday, a senior US official said the two sides agreed to broad points proposed by the United Nations and that would shape an extensive audit of suspect ballots.
The criteria for inspection would include districts with an unusually high turnout, where the number of votes reported includes round numbers, or where the number of female voters surpassed the number of male voters, the official said. These benchmarks would include 8,000 polling sites and roughly 3.5 million votes, or 43 percent of ballots cast.
The audit would take about two weeks, the administration official said. But neither side immediately signed off on the terms, Karzai’s office said Friday.
Aides to Abdullah said they expected Kerry to be able to break the deadlock but that they also hoped the secretary of state would stand up against ‘‘any government that comes to power based on a fraudulent vote,’’ according to campaign spokesman Fazil Sangcharaki.
Sangcharaki said Abdullah’s team seeks a more expansive review of the ballots, including the removal of the head of Electoral Complaints Commission, a separate body tasked with fielding and following up on complaints.