French President Francois Hollande says the country is facing a high threat from terrorism after a man attacked and killed a policeman and his partner with a knife.