Image copyright AFP Image caption Taliban fighters were celebrating the US deal earlier this week

The US military has conducted an air strike against Taliban fighters in Afghanistan, just hours after President Donald Trump said he had had a "very good talk" with a leader of the group.

The US signed a deal with the Taliban on Saturday aimed at bringing peace to Afghanistan after years of war.

But a US forces spokesman said it launched an air strike on Wednesday in response to Taliban fighters attacking Afghan forces in Helmand province.

The Taliban called for de-escalation.

In a post on Twitter, spokesman Suhail Shaheen said the group "plans to implement all parts of the agreement one after another to prevent conflict escalation".

"The opposite side should also remove the obstacles in implementing all parts of the agreement so the way is paved for comprehensive peace and for the Afghans to have their basic rights," he added.

It was not clear if there were any casualties.

What did the US say?

Wednesday's strike was the first by the US against the Taliban in 11 days, when a reduction in violence agreement began between the two sides in the lead-up to Saturday's pact.

In a statement on Twitter, Colonel Sonny Leggett, a spokesman for the US forces in Afghanistan, said it was a "defensive strike" to disrupt an attack on an Afghan National Security Forces checkpoint.

The spokesman added that the US was still "committed to peace" but had a responsibility to defend its Afghan partners. He said Afghans and the US had complied with their side of the agreement, while the Taliban appeared intent on "squandering" the opportunity.

Media playback is unsupported on your device Media caption Is peace with the Taliban possible?

On Tuesday alone, he said, the Taliban had launched 43 attacks on checkpoints belonging to Afghan forces in Helmand.

"We call on the Taliban to stop needless attacks and uphold their commitments. As we have demonstrated, we will defend our partners when required," he wrote.

The Taliban has so far declined to confirm or deny responsibility for any of the attacks.

Ambiguity brings confusion

Secunder Kermani, Pakistan/Afghanistan correspondent

US and Afghan officials had both said they expected the partial truce or "reduction in violence" that led up to the agreement in Doha would continue afterwards. But the text of the agreement makes no mention of this. That ambiguity seems partly responsible for the confusing situation developing on the ground.

The current spate of attacks by the Taliban could be seen as an attempt by the insurgents to pressurise the Afghan government into releasing thousands of their prisoners. They're demanding that before beginning "intra-Afghan" talks with the government and other Afghan political leaders. But so far President Ashraf Ghani has refused to agree to this.

However, it's also possible that the Taliban plan to continue fighting throughout the "intra-Afghan talks" in order to improve their negotiating position, and to keep their fighters mobilised.

What's the background?

On Saturday the US and the Taliban signed an "agreement for bringing peace" to Afghanistan after more than 18 years of conflict.

The US and its Nato allies agreed to withdraw all troops within 14 months if the militants upheld the deal.

Media playback is unsupported on your device Media caption The United States and the Taliban mark the signing of their agreement in Doha

But violence surged in Afghanistan just days after the agreement was signed, with the Taliban ending a partial truce and resuming fighting with Afghan government troops.

Central to the obstacles facing the deal is the disagreement over prisoner swaps.

Under the accord, some 5,000 Taliban prisoners and 1,000 Afghan security force prisoners are meant to be exchanged by 10 March, when talks between the Taliban and the Afghan government are due to start.

But Afghanistan's President Ashraf Ghani said on Sunday that his government had agreed to no such release. And on Monday the militants said talks would not take place if their prisoners were not released first.

Although the US-Taliban deal provides for the prisoner swap, a separate US-Afghan declaration commits the government in Kabul only to participating in talks on the "feasibility" of such a release.

Following reports of numerous Taliban attacks on Tuesday, Mr Trump shared a phone call with a leader of the group, Mullah Abdul Ghani Baradar, about keeping peace efforts on track.

The US president said it was a "very good talk", while the Taliban said Mr Trump had pledged to ask his Secretary of State Mike Pompeo to talk with Mr Ghani to make sure negotiations between the Afghan government and the Taliban went ahead as planned.

Media playback is unsupported on your device Media caption Donald Trump hails "very good talk" with Taliban leader

The Taliban have previously refused to negotiate with the Afghan government, so Saturday's deal was just with the US.

The US attacked Afghanistan in October 2001 to oust the Taliban, whom they said were harbouring Osama bin Laden and other al-Qaeda figures linked to the 9/11 attacks. The Taliban were removed from power but became an insurgent force that by 2018 was active in more than two-thirds of the country.