I have a mantis shrimp and I can tell you that mine does alot of clicking, mostly when it is doing rock excavation.
If you know for sure which rock the clicking is coming from and you don't want a mantis, I would isolate the rock until you can spot the source. After some time, you can try to...