those type of flashes appear throughout the battle. They also happen during the space scenes too in ANH when the stardestroyer is firing on the falcon. They have nothing to do with hitting shields or anything like that. It's supposed to represent something like air flak during a battle, but from lasers. It's just a visual thing. There is nothing wrong with the blast happening above the AT-AT
