Will a dead crab kill a Betta?

Any dead creature in the water will putrefy and the resultant putrefaction will kill any fish in that water. So yes the dead crab will kill the Betta eventually.