A teenager who held four women hostage for hours in a convenience store in the south of France was detained after an hourslong standoff.

Police said the 17-year-old was detained just before midnight without incident, hours after he freed his hostages in the town of Blagnac, on the outskirts of the city of Toulouse. The local newspaper La Depeche said Wednesday the teen was known to authorities for theft and because he had been arrested on the margins of a "yellow vest" protest.

Authorities are not treating the incident, which started around 4:20 p.m. on Tuesday, as terrorism.