Police officer killed in what is described as a 'terror attack'