Just get rid of him. If he came in on a rock, that means he was eating something on the rock or the tank it came in on. It will simply starve to death without the food source. Is there anything on that rock that looks like it would eat? There could be eggs in there if that is the case and this is a nudibranch.