A 12-year-old German-Iraqi boy has allegedly tried to detonate two nail bombs at a Christmas market in Ludwigshafen, Germany.