Shields do not block projectiles
Shields do not block any projectiles fired from players, hostile mobs or dispensers. This happens when using the shield in a toolbar slot or in the offhand. The shield also does not take any durability damage.
Shields still block melee and explosion damage