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.
Mr Hollande said after crisis talks with his prime minister and interior minister that the security forces had the full support of the nation and a national tribute would be paid to the fallen policeman.
Because of its worldwide renown and its large number of visitors, the Champs-Elysees has long been seen as a potential target, the BBC’s Hugh Schofield reports from the French capital.
A car pulled up alongside a police bus just before 21:00 (19:00 GMT) and a man got out, opening fire with an automatic weapon at the bus, Mr Brandet said.
After killing an officer, he attempted to run away while shooting at other officers, two of whom he injured, the spokesman added.
He was then shot dead by security forces.
According to BFMTV news channel’s sources, the killer was known to the security services and had talked of wanting to kill police officers on the Telegram messaging service.
The whole of the Champs-Elysees has been evacuated and police vehicles are lined up near a point half way up the avenue around the George V metro station, our correspondent says.
Shots were heard near the Marks & Spencer store, provoking a panicked rush away from the scene by tourists and passers-by.
Witnesses interviewed by AFP recounted scenes of panic as people ran for cover and sought shelter.
“We had to hide our customers in the basement,” said Choukri Chouanine, manager of a restaurant near the site of the shooting.
Thousands of troops and police guard tourist areas of the French capital. In February, a man armed with a machete in each hand was wounded after attacking soldiers on patrol at the Louvre Museum.
The following month, a 39-year-old man was killed at Orly airport after attacking a soldier.