A nine-year-old was among the five people killed in the Christmas market attack in the German city of Magdeburg, an official has said.