The officer didn't have sufficient grounds for shooting the teenager, although questions must be asked as to why he was still on the streets after having been caught driving without a license 4 times already. His lawyer must be a magician or something.
Because French criminal laws are so lax towards minors that most of these offenders are being consistently released by the police right after being formally held into custody, or by the judge after immediate trial, or just get probation or some ridiculous penalty like community service which are all but effective deterrents. Sometimes even after grueling year-long investigations by police and intelligence services into dismantling trafficking networks, etc., and even for repeat offenders who are already well-known to law enforcement -- for deeds which would otherwise result into much more severe sentences if the offenders were over 18. It does make sense to apply different criminal standards to children/teens versus adults who are presumed fully responsible for their actions; but when minors aren't just using firework mortars but have access to shotguns, machine guns, hand grenades, when they are basically behaving like warlords and yet the law keeps lagging behind out of fear of offending the offenders, while law enforcement are getting orders to stand down out of fear of escalation, there is something wrong with this picture.
(Absurdities in French law stemming from political correctness are another topic in and of itself. E.g. should you come back from vacation and happen to meet a squatter who has broken into your home, then obviously you cannot shoot or hold him at gunpoint because you do not have the right to bear arms, but you can't even wrestle him out physically to regain control of your property and bring your family back where it belongs. Especially if the squatter has already changed the locks, put the electric meters on their own name and settled in and it's winter time. It doesn't matter whether or not you and your family have a plan B for not sleeping outside, you shall not claim your property until you've filed a complaint and possibly waited 1-2 years for a judicial ruling and a motion for execution to be pronounced, while the squatters freely use your home. All in all I don't think private property should be placed above human life, but in France the seesaw has tilted so much in the opposite direction that it's ridiculous.)
Back to this particular case: Indeed at first sight the conditions weren't met for the officer to be using his firearm as a last resort measure in a potentially deadly way which unfortunately happened to be deadly (due process will tell), but what's certain is that most media outlets aren't reporting the full story: The officer didn't simply fire his weapon because he may have personally recognized the offender and knew he didn't have a driving license at 17; he didn't simply fire his weapon because the teen kept fleeing and resisting arrest; the officer's main aim was to halt the car because it was driving recklessly to begin with, almost running over a cyclist and endangering pedestrians. The driver chose to not comply and to speed away instead, even though two agents had their guns pointed at him inches away -- it is unfortunate but ultimately the driver decided to FAFO. I don't think the officer's intention was shoot to kill, unfortunately the single bullet penetrated the arm and the torso and the teen died of his wounds a few dozen minutes later.