Mantis .. possibly. Could be a pistol shrimp too. If it's one loud crack then its probably a mantis, but a quicker series of clicks is more likely a pistol shrimp. They are reef safe, but will disrupt your sand bed and the noise can be a little annoying.