The Syrian who blew himself up in southern Germany, wounding 15 people, had pledged allegiance to Islamic State on a video found on his mobile phone.