A homeowner in Prince George’s County shot and wounded a man who he thought was trying to break into his home, authorities said.

The incident occurred around 2 a.m. in the 3900 block of Brinkley Road in Temple Hills, according to police.

Police said that when they arrived, they found a man inside the home with gunshot wounds to his legs. He was conscious and breathing and taken to an area hospital. He was later listed in fair condition.

An initial investigation found that the homeowner and his wife were “alerted by the family’s dog to a noise at the front door,” according to police. Authorities said the couple found that a man was outside the home and appeared to be trying to get inside.

The man had “already pried open their storm door,” police said. The couple called 911, police said, and one of them got a weapon and shot the man through the front door.

Cpl. Nicole Hubbard, a spokeswoman for the police department, said the homeowner and his wife were the only ones home at the time and were not injured in the incident.

The investigation is ongoing. Police said there is “no known connection between the victims and the suspect.”

The state’s attorney’s office is working to figure out what charges will be filed against the suspect, according to detectives.