German police said they were holding a 26-year-old Syrian man in custody on Sunday after a knife attack in the city of Solingen in which three people were killed and eight injured, adding that they were looking into the suspect's possible links with the Islamic State.

The incident, along with the militant group's claim of responsibility, sparked concern among some politicians who urged enhanced security, tighter curbs on weapons, stiffer punishment for violent crimes, and limits to immigration.

The attack occurred during a festival on Friday evening in a market square where live bands were playing to celebrate Solingen's 650-year history.