A man armed with a knife killed two people and seriously injured another on Thursday morning in a town about 30 kilometres (20 miles) southwest of Paris, officials said.
According to AFP, the man was later shot and killed by police, a local government official said.
It was unclear if the violence was terror-related amid reports the violence might be linked to a family dispute.
“My first thoughts go to the victims and their loved ones,” Interior Minister Gerard Collomb wrote on Twitter. “I want to commend the security forces for their exemplary reaction and mobilisation.”
Trappes has a population of around 30,000 and is part of the far suburbs of the greater Paris area.
Only a short drive from the wealthy area of Versailles, home to the world-famous Versailles Palace, the town is known for its social problems linked to poverty, gangs and hardline interpretations of Islam.
It has a large Muslim population and about 50 locals are suspected of having left France to fight for the Islamic State group in Syria and Iraq, French security sources have previously told AFP.