The police couple was killed at their home. An IS-linked news agency report said the attack was carried out at Magnanville on Monday night by an “Islamic State fighter”, Xinhua news agency reported.
Their three-year-old son was put under medical attention after surviving the bloodshed unharmed.
The male police official, 42, was assaulted outside his home, Le Figaro reported, adding he was then in civilian clothes.
The newspaper cited Interior Ministry spokesman Pierre-Henry Brandet as saying the killer later went inside the officer’s home to hide.
Elite RAID police went to the scene about an hour later. The attacker, yet to be identified, was killed around midnight by security forces who stormed the house after failed negotiations.
The incident came after a gunman claiming to act in the name of the IS killed 49 people in a Sunday shooting at a gay nightclub in the US city of Orlando.