The flyers were part of a provocative campaign in Germany by the hardline nationalist AfD party, which made recent electoral gains.