Remove the flash hider so that you can work on the stuck bolt apart from the barrel & rest of the rifle. You will have to get a castle nut plier, a GOOD 1/16" allen wrench for the castle nut set screw, and a gas cylinder wrench to keep from torqueing on the barrel/gas cylinder assembly while loosening and retightening the castle nut.
Once the flash hider/sight assembly is in hand put the side of the sight opposite the battered/stuck screw against a solid surface-anvil, using a drift no larger in diameter that the head of the offending screw (while backing up the sight assembly) and hammer on the drift with a ball peen hammer a half dozen times (or more).
This will do two things for you. The bolt will receive enough "shock" to allow loosening without undue force, and the wallowed out socket head will peen closed a bit to tighten it back up to the (new/good/quality) wrench.
It MUST be backed up against a solid surface(anvil) to do ANY good though.
It wouldn't hurt to use an inpact driver to help in removing that screw also.
I know it sounds expensive, getting the few rifle-specific tools to remove the sight block/flash hider from the barrel, but it will serve you well in the future in working on your firearm, AND it removes any chance of further damaging the gun with errant tool marks.hammer blows, ect.
17 years of repairing motorcycles provided MUCH experience getting stuck and/or ruined fasteners from machinery with as little collateral damage as possible.