First, give the sprite the Tint effect, default settings make it red. Then, at the start of the layout, disable the effect.
Next, give the sprite the Flash behaviour.
Now create a function that you'll call whenever the player is damaged. In that function, set the tint active, then start the flash behaviour, then wait a period of time, then set the tint inactive.
I've attached a quick example of this in action.
Note that this uses a WebGL effect, so this won't work if there's no WebGL support on your target platform. If you want to be absolutely rock-solid, then you might have to create new sprites with the red tint already applied. Flash will work regardless, though.