On the rear end of the gas tube, wrap the flat part of the mating surface with a rag and grip with a pair of pliers. Rotate the handguard (I can't remember if it is counterclockwise or clockwise), it will come out once rotated 180 degrees. It may require a bit of force depending on how tightly fit it is.
Installation of the new handguard is simply the reverse.