A Moroccan security official says that his country’s intelligence service warned Germany twice about the risk posed by Anis Amri, the radical Muslim who slaughtered 12 people at a Christmas market in Berlin earlier this month.