An apparent home invasion early Thursday morning left both the suspect and the resident of the home with gunshot wounds, according to police in York.

The incident occurred just a before 1:30 a.m. at a home along the 800 block of West Poplar Street, police said.

When officers arrived at the scene they found the resident at the address, a 25-year-old man identified as Ernest Crosby, with a gunshot wound to the foot, police said.

"A second gunshot victim was discovered in the alley behind the address and was transported to York Hospital with four gunshot wounds to his forearm, back, buttocks and groin. The identity of the second victim has not been confirmed," according to a news release.

Both men were taken to a nearby hospital for treatment, police said.

Police said Crosby is calling the incident a home invasion. No charges have been filed in the case. Police said they are continuing investigate.

Further information was not provided.

Anyone with any information about the shooting is asked to contact police at 717-846-1234 or text tips to 847-411.