A man killed two police officers, both women, and a bystander in the Belgian city of Liege on Tuesday before being shot dead in a gun battle which prosecutors are treating as a terrorist attack.