A deadly attack on a police bus in the heart of Paris cast the shadow of terror over the final days of the French presidential election campaign