A Fairfax County man found an intruder in his apartment and tried to confront the intruder with a gun — and ended up being shot with his own weapon.

The man, a 27-year-old resident of the Baileys Crossroads area, awoke around 1:52 a.m. when he heard someone in his apartment, Tawny Wright, a Fairfax County Police spokeswoman said.

The resident grabbed his gun and confronted the intruder, whom he later described to police as a six-foot-tall white man with a large nose. Then the two men started fighting. The intruder got ahold of the gun.

Wright said that neither police nor the victim are quite sure what happened next. Maybe the intruder shot the resident on purpose. Maybe the gun went off accidentally while the men were wrestling for it.

It fired twice, striking the resident in the abdomen both times.

The intruder fled, leaving the gun behind. The shooting victim staggered down the hallway of his apartment building in the 3500 block of South George Mason Drive, banging on his neighbors’ doors and shouting for help.

No one came out of their apartments to help the wounded man in the middle of the night, Wright said. But someone called 9-1-1 to report that someone was banging on residents’ doors. The police found the gunshot victim in the hallway.

Wright said that the victim’s injuries aren’t life-threatening, and he is hospitalized in stable condition.

About 20 minutes after the shooting in the apartment, a man left a restaurant about a block away and fired shots into the air outside. He and two other men then sped off in a car.

At first, Wright said, police wondered if the gunshots outside the restaurant were related, but detectives have concluded that the two incidents were not connected. They have not found either the shooter in the apartment or the shooter outside the bar.

They’re still searching for both suspects, Wright said. And they’re trying to determine how the intruder got inside the 27-year-old’s apartment, and whether he selected it at random or for any particular purpose.