The source of the damage is Razor Boomerang, not the equipped creature. However, the equipped creature’s ability is what targets the permanent or player. If Razor Boomerang is equipped to a red creature, for example, the ability couldn’t target a creature with protection from red. It could target a creature with protection from artifacts, but all the damage would be prevented.