In the Breonna Taylor incident [0], their eyes weren't closed, but they may as well have been:
> Police then fired 32 rounds into the apartment... Cosgrove fired 16 shots from the doorway area... Hankison fired 10 times from outside through a sliding glass door and bedroom window, both of which were covered by blinds or curtains... The officers' shots hit objects in the living room, dining room, kitchen, hallway, bathroom, and both bedrooms.
Now, granted that situation was out of the norm because an occupant of the apartment fired a shot first, since he thought they were being burgled and the police neglected to announce their presence. But that's exactly the kind of situation that could happen in a SWAT raid. Most victims of SWATTing don't expect police to show up to their door, so if they're someone who owns a firearm and they hear a loud bang at the door, they may quite rightfully fire a shot at it in self defense, just like happened in the Taylor residence.
The main lesson there is that it's up to police to properly announce themselves (no-knock raids should never be used in response to an emergency distress call such as the kind that triggers a SWATTing). But even if they announce themselves and receive fire in return, I'd argue they should at least make sure they've sighted a target before they pull the trigger, rather than indiscriminately shooting a volley of bullets through a window like they're some kind of gangster doing a drive by.
[0] https://en.wikipedia.org/wiki/Killing_of_Breonna_Taylor#Shoo...