It's a shrimp that has burrowed down into the sand, I assume to avoid being eaten by passing birds and other creatures.
I think when they burrow down the turn in a circle which makes the dome shape out of the sand (someone can correct me if I'm wrong)