AKCAKALE, Turkey -- Turkey launched airstrikes, fired artillery and began a ground offensive against Kurdish fighters in northern Syria on Wednesday after U.S. troops pulled back from the area, paving the way for an assault on forces that have long been allied with the United States.

Turkish President Recep Tayyip Erdogan announced the start of the campaign, which followed the abrupt decision Sunday by U.S. President Donald Trump to essentially abandon the Syrian Kurdish fighters, leaving them vulnerable to a Turkish offensive that was widely condemned around the world.

The decision was a major shift in U.S. policy and drew opposition from all sides at home. It also marked a stark change in rhetoric by Trump, who during a press conference in New York last year vowed to stand by the Kurds, who have been America's only allies in Syria fighting the Islamic State group . Trump said at the time that the Kurds "fought with us" and "died with us," and insisted that America would never forget.

After Erdogan announced the offensive, Trump called the operation "a bad idea." Later Wednesday, he said he didn't want to be involved in "endless, senseless wars."

In northern Syria, residents of the border areas were in a panic and got out on foot, in cars and with rickshaws piled with mattresses and a few belongings. It was a wrenchingly familiar scenario for the many who, only a few years ago, had fled the advances on their towns and villages by the Islamic State group.

Plumes of smoke could be seen rising near the town of Qamishli and clashes continued late Wednesday amid intense shelling as Turkey struck at least six different border towns along a 290-mile (300-kilometre) stretch. At least seven civilians and three members of the Kurdish-led force known as the Syrian Democratic Forces were killed in the Turkish bombardment, Kurdish activists and a Syria war monitor said.

Turkey's campaign -- in which a NATO member rained down bombs on an area where hundreds of U.S. troops had been stationed -- drew immediate criticism and calls for restraint from Europe. In his statement, Trump emphasized that there are no American soldiers in the immediate area under attack.

"Our mission is to prevent the creation of a terror corridor across our southern border, and to bring peace to the area," Erdogan said in a tweet announcing what he called "Operation Peace Spring."

He said that Turkish forces, with Ankara-backed Syrian fighters known as the Syrian National Army, had begun to eradicate what he called "the threat of terror" against Turkey.

Mustafa Bali, a spokesman for the U.S.-backed SDF, said Turkish warplanes were targeting "civilian areas" in northern Syria and that shells also had fallen near a prison guarded by Kurds and holding some of the most dangerous IS militants. The AP could not verify the report independently.

In Washington, officials said two British militants believed to be part of an Islamic State group that beheaded hostages and was known as "The Beatles" had been moved out of a detention centre in Syria and were in U.S. custody.

Before Turkey's attack, Syrian Kurdish forces who control nearly 30 per cent of Syria's territory warned of a "humanitarian catastrophe." More than 2 million people live in the area impacted by the attacks, according to aid groups.

The Britain-based Syrian Observatory for Human Rights said those killed in the Turkish bombardments included two Christian Assyrians in Qamishli, a married couple and their child, a man in a village outside the town of Tal Abyad, and a child in a village west of Qamishli.

The Turkish operation meant to create a "safe zone" carries potential gains and risk for Turkey by getting its forces even more deeply involved in the Syria war. It also ignites new fighting in Syria's 8-year-old war, potentially displacing hundreds of thousands.

A resident of Tal Abyad said one of the bombs hit an SDF post, and he fled with his wife and mother by car to Raqqa, nearly 100 kilometres (60 miles) to the south, to flee the bombing. The resident, who gave his name as Maher, said the road to Raqqa was packed with vehicles and families, some fleeing on foot "to get away from the bombing."

"People fled and left everything behind," he said in a text message after he reached safety.

Turkey has long threatened to attack the Kurdish fighters that Ankara considers terrorists allied with a Kurdish insurgency in Turkey. Expectations of an invasion increased after Trump's announcement Sunday, although he also threatened to "totally destroy and obliterate" Turkey's economy if the Turkish push went too far.

U.S. critics said he was sacrificing an ally, the Syrian Kurdish forces, and undermining Washington's credibility. Republican Sen. Lindsey Graham, a Trump ally, told "Fox & Friends" that if Trump "follows through with this, it would be the biggest mistake of his presidency."

Trump later said the U.S. "does not endorse this attack and has made it clear to Turkey that this operation is a bad idea."

Trump said he made clear from the start of his political career that "I did not want to fight these endless, senseless wars -- especially those that don't benefit the United States. Turkey has committed to protecting civilians, protecting religious minorities, including Christians, and ensuring no humanitarian crisis takes place -- and we will hold them to this commitment."

NATO Secretary-General Jens Stoltenberg, while noting that Turkey "has legitimate security concerns" after suffering "horrendous terrorist attacks" and hosting thousands of refugees, said the country should not "further destabilize the region" with its military action in Syria.

German Foreign Minister Heiko Maas condemned the offensive, saying it will "further destabilize the region and strengthen IS." The operation also was criticized by European Commission President Jean-Claude Juncker.

The EU is paying Turkey 6 billion euros ($6.6 billion) to help the country cope with almost 4 million Syrian refugees on its territory in exchange for stopping migrants leaving for Europe.

The Turkish presidency's communications director urged the international community to rally behind Ankara. In a Washington Post column published Wednesday, Fahrettin Altun said Turkey aimed to "neutralize" Syrian Kurdish militants in northeastern Syria and to "liberate the local population from the yoke of the armed thugs."

Erdogan discussed the incursion by phone with Russian President Vladimir Putin. Erdogan's office said he told Putin the military action "will contribute to the peace and stability" and allow for a political process in Syria.

In its call for a general mobilization, the local civilian Kurdish authority known as the Autonomous Administration of North and East Syria asked the global community to fulfil its responsibilities and for the U.S.-led coalition to set up a no-fly zone in northeastern Syria to protect the civilian population from Turkish airstrikes.

The Syrian Kurdish group urged Moscow to broker talks with the Syrian government in Damascus in light of the Turkish operation. The Syrian Kurdish-led administration said it viewed positively calls from Moscow encouraging the Kurds and the Syrian government to settle their difference through talks.

Syria's Foreign Ministry condemned Turkey's military strike, calling it a "blatant violation" of international law and vowing to repel the incursion.

Russian Foreign Minister Sergey Lavrov accused Washington of playing "very dangerous games" with the Syrian Kurds, saying the U.S. first propped up the Kurdish "quasi state" in Syria and now is withdrawing support.

"Such reckless attitude to this highly sensitive subject can set fire to the entire region, and we have to avoid it at any cost," he said in Kazakhstan.

Earlier Wednesday, three IS militants targeted the SDF in Raqqa, once the de facto IS capital at the height of the militants' power. An activist collective in Raqqa reported an exchange of fire and an explosion; the Observatory said two IS fighters engaged in a shootout before blowing themselves up.

IS claimed responsibility, saying one of its members killed or wounded 13 SDF members.

The SDF, which holds thousands of IS fighters in detention facilities in northeastern Syria, has warned that a Turkish incursion might lead to the resurgence of the extremists. The U.S.-allied Kurdish-led force captured the last IS area controlled by the militants in eastern Syria in March.

------

El Deeb reported from Beirut. Associated Press writers Suzan Fraser in Ankara, Turkey; Mehmet Guzel in Akcakale, Turkey; Nasser Karimi in Tehran, Iran; Nataliya Vasilyeva in Moscow; and Bassem Mroue in Beirut contributed.