Denmark’s state prosecutor said on Friday a 31-year-old man had been charged with planning a terrorist attack with knives and explosives in Copenhagen in November 2016.