The US launched an airstrike against Taliban fighters to defend Afghan forces Wednesday, an American military spokesman said, as violence spirals after a string of deadly attacks by the insurgents, throwing the country's nascent peace process into grave doubt.

News of the airstrike in southern Helmand province -- the first in 11 days -- came hours after US President Donald Trump told reporters he had had a "very good" chat with the Taliban political chief, who on Saturday signed a historic deal with Washington to withdraw foreign forces.

Since the signing in Doha however, the militants have ramped up violence against Afghan forces, ending a partial truce and casting a pall over peace talks between Kabul and the Taliban, due to begin on March 10.

US Forces-Afghanistan spokesman Sonny Leggett tweeted that the airstrike targeted Taliban fighters who were "actively attacking" an Afghan forces checkpoint in Helmand.

"This was a defensive strike to disrupt the attack," he tweeted.

"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 said insurgents had carried out 43 attacks on checkpoints in Helmand on Tuesday alone.

Afghan Taliban fighters and villagers attend a gathering in Alingar district of Laghman Province on the day the militants said they were resuming operations against Afghan government targets
Afghan Taliban fighters and villagers attend a gathering in Alingar district of Laghman Province on the day the militants said they were resuming operations against Afghan government targets AFP / NOORULLAH SHIRZADA

Provincial police spokesman Mohammad Zaman Hamdard told AFP: "In the past two days we have witnessed the most intense Taliban attacks in Helmand."

"They have attacked several districts and many military bases," he added.

Elsewhere the insurgents killed at least 20 Afghan soldiers and policemen in a series of overnight attacks in other provinces, government officials told AFP Wednesday.

"Taliban fighters attacked at least three army outposts in Imam Sahib district of Kunduz last night, killing at least 10 soldiers and four police," said Safiullah Amiri, a member of the provincial council.

A defence ministry official speaking to AFP on condition of anonymity confirmed the army toll, while the provincial police spokesman Hejratullah Akbari confirmed the police fatalities.

The insurgents also attacked police in central Uruzgan province Tuesday night, with the governor's spokesman Zergai Ebadi telling AFP: "Unfortunately, six police were killed and seven wounded."

News of the attacks emerged after Trump told reporters in Washington on Tuesday that he had a "very good" relationship with Taliban negotiator Mullah Baradar, with the pair speaking on the phone for 35 minutes, according to the insurgents.

US President Donald Trump had sharp words for the government of Afghan President Ashraf Ghani, suggesting they were doing well financially from the prolonged presence of American troops
US President Donald Trump had sharp words for the government of Afghan President Ashraf Ghani, suggesting they were doing well financially from the prolonged presence of American troops AFP / NOORULLAH SHIRZADA

"The relationship is very good that I have with the mullah. We had a good long conversation today and you know, they want to cease the violence, they'd like to cease violence also," he said.

But on Wednesday, US military spokesman Leggett warned that the "#Afghans & US have complied w/ our agreements; however, Talibs appear intent on squandering this (opportunity) and ignoring the will of the people for #peace."

Under the terms of the deal, US and other foreign forces will quit Afghanistan within 14 months, subject to Taliban security guarantees and a pledge by the insurgents to hold talks with Kabul.

The agreement also includes a commitment to exchange 5,000 Taliban prisoners held by the Afghan government in return for 1,000 captives -- something the militants have cited as a prerequisite for talks but which President Ashraf Ghani has refused to do before negotiations start.

Trump has said the Taliban and Washington both "have a very common interest" in ending the war.

But Kabul-based political analyst Atta Noori said the Americans had apparently "failed so far to convince the Taliban -- who are thinking as victors -- to come to the negotiating table with the Afghan government".

"All the parties (will) show their teeth, but in the end they have to sit and talk", he said.

In the last 24 hours the Taliban conducted 30 attacks in 15 of Afghanistan's 34 provinces, interior ministry spokesman Nasrat Rahimi tweeted.

The insurgents, who have been known to exaggerate figures, claimed on their website to have killed 35 security forces since Tuesday night.

Ghani's government last week sent a delegation to Qatar to open "initial contacts" with the insurgents, but Taliban spokesman Suhail Shaheen on Tuesday said the militants would not meet Kabul's representatives except to discuss the release of their captives.

Apparent differences between the Doha agreement and a separate joint US-Afghan declaration made in Afghanistan underline the obstacles facing negotiators.

The US-Taliban deal committed to the release of prisoners, while the Kabul document only required both sides to determine "the feasibility of releasing" captives.