Hi there;
Was he picking at the rock or scratching on it? Chances are that he has a secondary infection from a wound either way. Keep a close eye on him and let us know how it goes. Treating fish in a reef is a risky proposition; you may need to set up a Q-tank, which can be as simple as a bucket and an airstone or sponge filter. Ideally, the spong filter has been in your main tank developing denitrifying bacteria but if that's not the case, just fill the bucket with tank water. Treatment for this type of infection isn't nearly as long as for ich so you should be able to maintain him in the bucket with just a water change or two with water from your main tank.
Did I just confuse you more than I've helped you? LOL...it's getting late
