Hit it with a hammer. doesnt come off, must be an electrical problem..
In all seriousness. I would get some plastic or soft vice jaws made to hold a barrel in the vise. Remove the gas block pins. They could be tapered so keep that in mind. I would use kroil or some other penetrating oil and let the block soak for a few hours to a day. Then apply heat on the block and barrel section. Dont need red hot. Now with either a brass punch( brass marks can be removed with cold blueing) or a piece of of wood, and hammer that bad boy off.