NEWBERRY TOWNSHIP, Pa. (WHTM) — One man is in custody and another was injured after a shooting at the Walmart Supercenter in Newberry Township on Sunday afternoon.

Newberry Township Police have identified the alleged shooter as Pedro Rosado-Fernandez and say a 9mm handgun was recovered inside the store. Rosado-Fernandez has been charged with two felony counts of aggravated assault and one misdemeanor charge of recklessly endangering another person.

The male gunshot victim was found near the rear of the store with a single wound to his arm.

Police say the investigation revealed a relationship between Rosado-Fernandez and the victim which surrounds a small child who was also at the store during the shooting.

Court documents show Rosado-Fernandez, of Dover, posted $25,000 bail and is scheduled for a preliminary hearing on June 1.

According to York County Acting Director of Communications Ted Czech, at around 4:41 p.m. a call to 911 was placed for a potential active shooter. Police arrived on the scene within one minute.

“I looked at my phone twice, thinking, ‘[No], this is not occurring, not in Newberry Township,” Newberry Township Police Chief Stephen Lutz said.

Get daily news, weather, breaking news and alerts straight to your inbox! Sign up for the abc27 newsletters here.

An off-duty officer from a different department was able to detain Rosado-Fernandez before officers arrived on the scene.

“You have the training, the expertise that when it does happen, but you’re hoping that it doesn’t happen. And I say you’re hoping it doesn’t happen because when it does happen, that means someone’s life is in danger or someone got hurt,” Lutz said.

Police are working to review the Walmart surveillance footage and talking to the York County District Attorney’s Office about what charges will be filed.

Get daily news, weather, breaking news, and sports alerts straight to your inbox! Sign up for the abc27 newsletters here. 

Newberry Township Police are investigating. All other businesses around Walmart are open. Ramps coming off of Interstate 83 northbound around the scene were shut down due to the incident.

This is a developing story. Stay up to date on the latest from abc27 News on-air and on the go with the free abc27 Mobile app.