A gunman reportedly linked to ISIS opened fire in the Champs Elysees boulevard in Paris, France, killing a police officer and injuring two others.

The shootout occurred on Thursday night just days ahead of the French presidential elections, according to media sources.

The attack was carried out using an assault rifle, The New York Times reported.

The gunman, who was killed by security forces, is a 39-year-old French national, Reuters reported citing French television networks.

"The attacker's identity is known and has been verified."

French Interior Ministry spokesman Pierre-Henry Brandet was quoted by Reuters as saying: "A little after 9pm a vehicle stopped alongside a police car which was parked. Immediately a man got out and fired on the police vehicle, mortally wounding a police officer.”

ISIS news agency Amaq claimed that an ISIS fighter, named Abu Yousif al-Belgiki, carried out the firing.

Paris prosecutor François Molins was quoted by BBC News as saying: "The attacker's identity is known and has been verified.

"I won't reveal it, because investigations and raids are already under way, in particular to establish whether there is any evidence or not of complicity (in this attack).”

Reuters quoted French Interior Minister Matthias Fekl as saying: "The sense of duty of our policemen tonight averted a massacre.

"They prevented a bloodbath on the Champs Elysees.”

A search was carried out at the attacker's home located in a town east of Paris.