hermits wont hurt a clam, the clam would just shut. The clam was obviously not able to shut itself, either too week or already dead.
Ditto, sadly it looks like there was something wrong with it initially. Your hermit crabs were just doing their job.