CLAYTON, N.C. (WNCN) — Clayton police said a home invasion in which a suspect was shot was not a random act.

Officers responded around 12:23 a.m. on Thursday to the 2700 block of Brigadoon Drive in reference to a home invasion in progress, police said.

Residents of the home reported hearing a loud noise coming from the back-door area and saw an unknown person inside the home.

Get crime updates in your inbox – Sign up for CBS 17’s Crime Tracker newsletter

The homeowner grabbed a handgun and shot at the suspects who returned fire, according to police.  One of the suspects was struck before fleeing the residence.  Detectives said the three suspects were involved and entered the home.

Alexis Segura Prieto, 19, of Raleigh, was found in the yard with a single gunshot wound. Police said he was treated by Johnston County EMS and taken to WakeMed in Raleigh.

Segura-Prieto has been charged with first-degree burglary, attempted murder, and shooting into an occupied dwelling. Police said they are working to identify the two other suspects at this time.

Investigators are still working to determine a motive.