Islamic State militants stormed into the Syrian Kurdish town of Kobane on Thursday, launching suicide attacks and gunning down civilians five months after the extremists were driven from the area with the help of U.S.-led airstrikes.

Assailants in five cars penetrated Kurdish defenses shortly before dawn, carried out a suicide bombing and then fanned out in an apparent attempt to blast their way into the town on the Syrian-Turkish border, said Redur Xelil, a spokesman for the Kurdish People’s Protection Units, or YPG, which reclaimed Kobane in January.

The attackers — numbering about 30 — wore YPG uniforms and flew the flags of the opposition Free Syrian Army on their vehicles, Xelil said. They moved through the streets randomly shooting at civilians, killing and wounding scores, then detonating suicide vests as Kurdish forces closed in, according to Xelil and witnesses.

Authorities in Turkey said 63 civilians from Kobane were admitted to Turkish hospitals.

By nightfall, most of the militants had been captured, killed or surrounded, and Kurdish forces were reported to be restoring order. But the attack was a reminder of the Islamic State’s continued ability to upset the battlefield even when it appears to be on the defensive.

Relatives of wounded people react in front of the hospital of Suruc, Sanliurfa province after a deadly suicide bombing occurred in the Syrian town of Kobane, accross the border with Turkey, killing 12 civilians. (Ilyas Akengin/AFP/Getty Images)

In recent weeks, the group has suffered defeats in nearby Raqqa province. The capture last week of the border town of Tal Abyad, the militants’ most important conduit for trade and the flow of foreign fighters, was followed by a Kurdish-Syrian rebel force’s advances farther south toward the city of Raqqa, the Islamic State’s self-proclaimed capital.

Xelil said the Kobane attack by the Islamic State — also known as ISIS, ISIL and Daesh — was intended to divert attention from the group’s recent setbacks.

“This is related to the success we achieved. Daesh wants to raise the spirits of its fighters, but I don’t think they can succeed,” he said.

One of the targets of the attack appeared to be the leader of the main Syrian rebel battalion fighting alongside the Kurds, according to Abu Shujaa, a spokesman for the battalion, Thuwar al-Raqqa, or Raqqa Revolutionaries. During the attack, Kurdish-speaking assailants in Kurdish uniforms went to the home of the leader, known as Abu Issa, asked for him and then opened fire, wounding six of his female relatives, Abu Shujaa said.

The assault represents the first major setback for Kurdish forces in Kobane since the Islamic State initially launched an offensive to capture the town in September, triggering the most intense airstrikes so far in the U.S.-led campaign against the group.

Relatives gather in front of a hospital in Suruc in Turkey's Sanliurfa province, across the Syrian border town of Kobane, as wounded people are ferried Thursday. (Ilyas Akengin/AFP/Getty Images)

Kobane became a symbol of both Kurdish and American determination to confront the Islamic State, and U.S. officials regularly point to the victory there as an example of the progress that can be made when resolute ground forces are backed by concerted U.S. air power.

The location of Thursday’s attack — on the northern edge of town adjoining the Turkish border — drew allegations of Turkish involvement from Kurdish activists. The Kurds have long accused Turkey of covertly helping the Islamic State to prevent the Kurds from consolidating control over territory adjoining the country. On its Facebook page, the YPG accused “the fascist Turkish army” of facilitating the attack, and on Twitter, the hashtag #TerroristTurkey trended worldwide.

Turkey strenuously denied the charge and released CCTV footage from its side of the border showing that the first suicide bomber drove his car from the Syrian side.

“By using the latest attack in Kobane as a pretext, some dirty circles are attempting to put Turkey on the target board,” Deputy Prime Minister Numan Kurtulmus said.

Tanju Bilgic, a Turkish Foreign Ministry spokesman, said the government had evidence that the convoy of assailants was dispatched from the Islamic State-controlled Syrian town of Jarablus farther west, on the opposite bank of the Euphrates River. “We deny the allegation ISIS crossed the border from Turkey,” he said.

According to Abu Shujaa, all the assailants were Kurdish, many of them from Iraq, and they infiltrated Kobane by mingling with refugees returning to the devastated town.

Xelil said the convoy of cars originally approached Kobane from the southwest, but he disputed the idea that the assailants could have come from Jarablus, saying bridges across the Euphrates have been blown up.

“Where they came from is a confusing question,” he said. “There are still ongoing investigations.”

Also Thursday, a coalition of mostly moderate rebel units launched an offensive to capture the southern Syrian city of Daraa from the government. If successful, the offensive would effectively leave President Bashar al-Assad’s increasingly beleaguered forces without a major foothold in southern Syria and further shift the balance of power.

The United States announced Thursday that it would send more than $360 million in additional assistance for those affected by the conflict, which began in 2011.

Read more:

Kobane after the Islamic State: A town in ruins

The Islamic State’s war against history

The U.S. acted to save Iraq’s Kurds. Why not Syria’s?

Bashar al-Assad acknowledges setbacks on the battlefield