Authorities have given no further details on the attack or a possible motive but told local newspapers the assailant had recently left a psychiatric hospital.
The attacker, identified as an Algerian man, was arrested at the scene and taken into custody. His victim needed stitches for neck wounds and has undergone hospital treatment.
Bernard Cazeneuve, the French interior minister, sent his condolences to the injured police officer, his relatives and colleagues.
Terrorism in 2016: Terror attacks in Europe claimed by Isis
Show all 9
“Police and gendarmes risk their lives to protect of others every day and deserve the respect and esteem of all our citizens,” a statement from the interior ministry said.
Friday’s attack was the latest in a series of stabbings in France, including the attempted murder of a Jewish man in Strasbourg last month.
France has been rocked by a series of terror attacks starting with the massacres at Charlie Hebdo’s offices and a Kosher supermarket in January last year and Paris attacks.
An Isis supporter driving a lorry killed 86 people celebrating Bastille Day in Nice last month and two teenage jihadists killed a Catholic priest after storming a church in Normandy weeks later.
The assaults have increased pressure on the French security services while reigniting national debates on immigration, integration and secularism.
Join our commenting forum
Join thought-provoking conversations, follow other Independent readers and see their replies
Join our commenting forum
Join thought-provoking conversations, follow other Independent readers and see their replies