The AfD helped a liberal politician win the vote and the German chancellor says it is unforgivable.