A Syrian refugee has killed a woman and injured at least two others while attacking them with a machete in the southern German city of Reutlingen, German police say. 

The 21-year-old suspect, who was arrested on Sunday, was known to police for previous allegations of violence and was believed to have been acting alone. 

The assailant's motives were unknown.

"There is no danger to anyone else at this time," a police official told Reuters news agency, adding that there was no indication the attack was politically motivated. 

READ MORE: How did the media cover the Munich attack?

The attack came days after a gunman killed at least nine people in the southern city of Munich in a shooting authorities say was inspired by Anders Breivik, the Norweigan far-right attacker who killed 77 people in 2011. 

On July 17, a 17-year-old Afghan refugee was shot dead by police after injuring several train passengers in an attack with an axe and a knife near the southern city of Wuerzburg. 

Source: Al Jazeera and agencies