I believe you have a pistol shrimp, mine does it all the time, it is their way of scaring of intruders, I hardly ever see mine, although I bought one, months ago, except for at night he comes out from his hole in the gravel. But he is a noisely little guy! Makes a clicking noise on a rock or...