A homeowner in Grand Prairie, Texas shot a knife-wielding home intruder after the suspect shattered a side window to gain entry into the home, KXAS-TV reports.

The homeowner, who has not been identified, was reportedly on the phone with 911 operators when he shot 21-year-old Gilberto Banderas. The shooting occurred at around 2:30 p.m. after the sound of breaking glass prompted the homeowner to get his .40 caliber handgun.

The suspect, Banderas, was shot in the stomach. As it turns out, police discovered he lives just blocks away from the home he attempted to break into. In other words, he apparently tried, and failed, to rob his neighbor.

“I’m still in shock,” neighbor Lena Tinajero told KXAS-TV. “I can’t believe it. You know, you don’t think, you never never think it’s your neighbors — especially if you know them, so I’m still in disbelief.”

The homeowner reportedly held Banderas at gunpoint until officers arrived.

“During the conversation with him, we could hear him yelling, ‘You came at me with a knife,’” Grand Prairie detective Lyle Gensler said. “We responded within about a minute and 30 seconds.”

Banderas was later transported to John Peter Smith Hospital in Fort Worth, Texas.