It's not a prank. It's an assault.
Committing an act that places another in fear of receiving serious injury or death.
The "prank" intent is irrelevant. What matters is what the victim perceived the situation to be.
This idiot could have been shot and the shooter would walk away scot free.
The stupidity of people continues to amaze me, even after all these years.