Germany stabbing suspect motivated by IS: prosecutors

Attack suspect
A suspect in a knife attack was escorted from a helicopter in Karlsruhe for a court appearence. -AP

A Syrian man has been held on suspicion of murder and membership in a terrorist organisation in connection with a knife attack in Germany that left three dead and eight wounded at a festival.

A judge at the Federal Court of Justice in Karlsruhe ordered 26-year-old Issa Al H be held pending further investigation and a possible indictment after federal prosecutors said that he shared the radical ideology of the Islamic State (IS) extremist group - and was acting on those beliefs when he stabbed his victims repeatedly from behind in the head and upper body.

The ruling came after the suspect turned himself in, saying that he was responsible for the attack in the city of Solingen, police said.

He is also suspected of attempted murder and serious bodily injury, prosecutors said.

His last name was not released in line with German privacy rules.

Mourners have made a makeshift memorial in Solingen near the scene of a fatal stabbing attack. (EPA PHOTO)

The suspect, wearing handcuffs and leg shackles, was taken by helicopter on Sunday from the police station in Solingen to Karlsruhe for the initial court appearance.

He "shares the ideology of the foreign terrorist organisation Islamic State" and on the basis of his "radical Islamic convictions" decided "to kill the largest possible number of those he considers unbelievers" at the festival, the Office of the Federal Prosecutor said in a statement.

The suspect is a Syrian citizen who had applied for asylum in Germany, police confirmed to the Associated Press.

The DPA news agency reported, without citing a specific source, that his asylum claim had been denied and that he was to have been deported last year.

On Saturday, the IS group claimed responsibility for the attack.

It said on its news site that the attacker targeted Christians, and that the perpetrator carried out the assaults on Friday night "to avenge Muslims in Palestine and everywhere".

On Sunday, the group posted two clips on its Telegram account of what it said was the attacker.

The first purportedly showed the masked man pledging allegiance to the IS leader and the second, in which his face was blurred, allegedly showed him speaking moments before the attack.

The attack comes amid debate over immigration before regional elections on September 1 in Germany's Saxony and Thuringia regions where anti-immigration parties such as the populist Alternative for Germany are expected to do well.

German Chancellor Olaf Scholz lays a flower near the crime scene in Solingen. (EPA PHOTO)

German Chancellor Olaf Scholz pledged to step up deportations on Monday during a visit to Solingen, where the attack has stoked criticism of his government's handling of migration.

"We will have to do everything we can to ensure that those who cannot and are not allowed to stay in Germany are repatriated and deported," Scholz told reporters in the western city, where he laid a flower at the scene of the crime.

"This was terrorism, terrorism against us all," he added.

Scholz said deportations had increased by some two thirds compared to 2021 levels.

"But that is no reason for us to sit back and relax," he added, saying the government was looking at legal and practical ways to boost the numbers.

Friday's attack plunged the city of Solingen into shock and grief.

A city of about 160,000 residents, Solingen was holding a "Festival of Diversity" to celebrate its anniversary.

People alerted police shortly after 9.30pm on Friday that a man had assaulted several people with a knife on the city's central square, the Fronhof.

The three people killed were two men, ages 56 and 67, and a 56-year-old woman, authorities said.

with DPA and Reuters