A man who took two hostages at a post office in a suburb northwest of Paris has been arrested after surrendering.
A police source said that the hostages had been freed.
"There was no assault, the man gave himself up", the source said, adding that the hostages were "shocked but not injured".
Police earlier said there did not appear to be any link to extremist attacks.
They had said several post office clients had managed to escape and that the gunman himself had called them.
The sources said he was "speaking incoherently" and was heavily armed with grenades and Kalashnikovs.

The area around the post office in Colombes, a city northwest of Paris, was cordoned off, with a helicopter flying overhead and elite security forces on the ground.
A series of attacks in France last week by Islamist militant gunmen left 17 people dead.