What is being compared in the following similie?
The noise of a door slamming came from downstairs and reverberated through the house loudly like a gunshot that Bruno jumped and Maria let out a small scream.

Why is this an apt comparison?