A failed asylum seeker from Syria reportedly blew himself up and injured 12 people after being denied entry to a music festival in Ansbach, Germany.

The German authorities believe that the blast occurred after a device in the 27-year-old man's backpack exploded.

It is unclear whether the man intended to kill himself or planned to use the explosive device to kill others.

"More than 2,500 people were evacuated from the venue after the explosion."

More than 2,500 people were evacuated from the venue after the explosion, BBC News reported.

The Syrian migrant, whose application for asylum was rejected last year, had allegedly attempted to kill himself before.

Bavaria Interior Minister Joachim Herrmann was quoted by Deutsche Presse-Agentur as saying: “My personal view is that I unfortunately think it is very likely this really was an Islamist suicide attack.

The explosion follows a recent shooting rampage by a German teenager of Iranian origin in Munich, killing nine people.

An Afghan asylum seeker was recently killed by the police after injuring five people using an axe.

Another Syrian asylum seeker was arrested after allegedly killing a Polish woman in the town of Reutlingen, Baden-Wuerttemberg.