That is some type of nudibranch.
If it was on a coral frag,you need to inspect it really close for more and remove all that you find.Also check along the bottom of the frag for egg sacks (their usually yellow) and scrape them off with a stiff tooth brush.
What type of coral is it? If its zoanthids,it wont hurt em to give a fresh water bath in addition to the lugols.