When shield gets hit, it has invincibility frames, just like any player. Basically you were hitting the shield after it got pinged by the bomb. I do it myself, but it is possible to hit before the bomb though.
Fun note: if you ping the bomber shield directly, it 'deactivates' so teammates in the shield can get hit. This is why guardians in bombs fail to protect their teammates. They can protect them if they stay outside the bomb though.