You'll have to net him out and use the net to hold him. Remove one with tweezers, dip the net back into the water to allow him to recover a bit, pull the net back out and remove the next. Repeat until all the worms are gone. The final dip should be a salt dip. I would recommend getting a treatment for external parasites as well to dose the tank with after you've removed the worms.