Kabul: Afghan President Hamid Karzai urged the country’s two presidential candidates to reach an agreement on a new national unity government on Tuesday at a state function that devolved into raucous shouting by agitated supporters of candidate Abdullah Abdullah.

Karzai, who has been in power in Afghanistan since shortly after the 2001 US-led invasion, said that his time as president is over and that the country wants a new government. He told the crowd of hundreds of power brokers to urge Abdullah and Ashraf Gani Ahmadzai to reach a deal to end the country’s now five-month-long election process.

Karzai said the two could reach a deal within days and that Afghanistan could have a new government within a week.

Abdullah on Monday announced that he would not accept the expected outcome of the election committee’s recount of some 8 million ballots cast in a June runoff, an indication that the official ballot numbers favour Gani Ahmadzai. The official announcement has been expected to be made this week.

At Tuesday’s ceremony honouring a beloved anti-Taliban fighter who was assassinated, a rowdy crowd of men who mostly back Abdullah’s campaign gave the candidate an opportunity to play the role of statesman during the nationally televised ceremony. But the effort failed.

When Sibghatullah Mojaddedi — a former Afghan president and current Gani Ahmadzai supporter — rose to speak, many at the ceremony shouted him down. Abdullah bounded up to the podium and reminded his supporters that on Monday he had requested the country to remain peaceful on Tuesday, a national holiday honouring Ahmad Shah Massoud, who was killed two days before the September 11, 2001, attacks in the US.

Despite Abdullah’s plea, the shouts kept raining down, and an agitated Mojaddedi left the podium without speaking. The proceedings closed down unceremoniously shortly afterward.

Abdullah and Gani Ahmadzai walked into the tent — in reality a large conference room — alongside Karzai, but the two did not acknowledge each other. At one point they stood face-to-face only three feet apart but did not make eye contact.

US pressure on the candidates has yielded no breakthrough. President Barack Obama spoke with both candidates over the weekend and urged them to quickly form a national unity government. US Secretary of State John Kerry has made two trips to Afghanistan over the last two months.

The international community had hoped for a smooth transition of power as most foreign forces withdraw by the end of the year. The US wants the next Afghan president to quickly sign a security agreement to allow some 10,000 troops to remain to assist with counterterrorism operations and training Afghan forces.