There is a possibility that the attack didn't stop after hitting and the player/enemy took damage each update which resultet in an instant kill. If this was the problem, some sort of cooldown would fix it.