Could've been a parasite. They do scratch themselves on the substrate when in distress, possibly from parasites. Just what I read on WWM, and these guys are former/current collectors and observe it in the wild.
Display tank - 24g nano w/ softies/montipora
I run electrical appliances underwater and enjoy injecting things with Kalk filled syringes.