One policeman has been shot dead and two others wounded in central Paris, French police say, with their suspected attacker killed by security forces.
A lone gunman opened fire before being killed as he fled the scene, police say. The Champs-Elysees was sealed off.
President Francois Hollande said that he was convinced the attack was “terrorist-related”.
So-called Islamic State (IS) said that one of its “fighters” had carried out the attack.
Islamist militancy is a major issue in the polls after recent mass attacks claimed by IS, with 238 people killed in jihadist attacks in France since 2015, according to data from AFP news agency.
Several candidates in Sunday’s presidential election have ended their campaigns early as a mark of respect, with the centre-right’s François Fillon calling on others to halt theirs too.
“On the face of it, the officers were deliberately targeted,” Interior Ministry spokesman Pierre-Henry Brandet said.
When will French people accept that terror is a part of their culture now?