Damage from a blocked attack?

How can a blocked attack still do damage?
I was in battle league today and used a shield to block a charge move when the game paused, when it resumed, my shield was gone and the attack had hit, which cost me the battle. How is this possible?

Lag.