According to an Icefrog dev thread reply the Spirit Bearís Backlash damage is supposed to be dealt even when the bear gets denied by LD or an ally.

Currently the backlash damage is only applied when an enemy (or neutral) unit kills the Spirit Bear.

Video: