Bavarian bomber pledged allegiance to Islamic State - minister