A 27-year-old Syrian man denied asylum in Germany a year ago died on Sunday when he set off a bomb outside a crowded music festival in Bavaria.