Madison Police are investigating whether a shot fired in a Southwest Side apartment building Thursday night was justifiable self-defense.

A resident fired a handgun at a man who had entered his Schroeder Court apartment at about 10:30 p.m., police said.

The 23-year-old resident told police he aimed at the intruder and hoped to wound, but not kill. The bullet missed the intruder and hit drywall in the apartment.

The resident immediately called 911, police said. He told the officers that he came out of the bathroom and found the intruder near his desk and laptop computer. He said it looked like the man came in through a sliding door.

The resident brought out his weapon and yelled at the man, who ran through the front door. The resident then fired his gun, police said.