Did I miss something? Who told whom about the location of the gun?
The homeowner evidently told SOMEBODY, because it is reported in the story.
“The victim then grabbed a gun that he kept by his bed “