A 29-year-old police officer died on Sunday after being repeatedly stabbed during an attack at an anti-Islam rally in Germany.