If an attempt to equip fails, does the equipment fall off?
702.6a Equip is an activated ability of Equipment cards. “Equip [cost]” means “[Cost]: Attach this permanent to target creature you control. Activate this ability only any time you could cast a sorcery.”

The now-dead bear is no longer a valid target so the equip ability doesn't resolve, and the sword remains equipped on the original creature.