If the snail is a Nassarius, it did NOT kill your crab. However, there are many predatory whelks out there, and some, such as Illyanassa obsoleta, are frequently sold as Nassarius sp.
More likely, your crab gave up the ghost and the snail did what it does best...eat carrion.