Forgive me if my translation from your screenshot is incorrect, but in both attacks by “Trasser,” this was Enemy Revenge. That I can find, the Raid Shield does not protect you from Revenge attacks, only from new attacks.
I know it must be frustrating after spending so many gems, and it isn’t explained clearly that I can find, but I do not believe this is a bug.
The good news?? You won in both battles for a gain of 12 trophies!