The blast occurred just two days after a gunman killed nine people at a mall in Munich

Receive the latest national-international updates in your inbox

Officers are seen at police cordon near the site of a suicide attack in the southern German city of Ansbach on 25 June, 2016. A Syrian migrant set off an explosion at a bar in southern Germany that killed himself and wounded a dozen others late Sunday, authorities said, the third attack to hit Bavaria in a week.

A Syrian man blew himself up in Ansbach, Germany, killing himself and injuring 12 others on Sunday during an outdoor festival, police confirmed to NBC News.

The three-day open-air festival was taking place in Ansbach, a city of 40,000 people about 20 miles southwest of Nuremberg in Bavaria. The blast occurred just two days after a gunman killed nine people at a mall in Munich.

Joachim Herrmann, the interior minister in Bavaria, said at a news conference Monday morning that three of the wounded were in serious condition but that none of the injuries was believed to be life-threatening.

Herrmann said it remained to be determined whether the explosion was related to terrorism, but because the man wore a backpack carrying explosives and metal projectiles capable of hurting many people, "we must assume that it was not purely a suicide."