Unless pinned or welded it should just unscrew. Look very carefully for a spot that may have been ground or a circular mark on the side of the flash hider.
If you don't see one then check if there are 2 wrench flats, possibly (probably?) not parallel. If this is the case there is a lock ring to allow indexing the slots on the flash hider to your preferred position, put a close fitting wrench on both and, while holding the ring (closest to the breech) stationary, rotate the other part counter clockwise as seen from the muzzle.
If there is no weld/pin or lock ring it was likely installed with loc-tite. you will need a barrel vise to hold the barrel and probably heat (propane torch is fine) and a close fitting wrench. Clamp the barrel in the vise, apply heat to the hider for a couple of minutes (it won't get hot enough to affect the barrel) then loosen the hider with the wrench.
If none of this works, get thee to a good smith to save head aches and money.