York police are searching for a 27-year-old man from Lowell, Massachusetts, after he allegedly shot and robbed a York resident during a home invasion early Saturday.

Police and other emergency workers responded to a call shortly before 1:30 a.m. from a man who said he had been shot during a robbery, police said in a statement. 

The victim told police that two men tried to rob him at his home and multiple gunshots were fired at him. The victim told police that he escaped and ran to a neighbor’s house to call 911, and that his truck had also been stolen.

The victim sustained non-life-threatening injuries after being shot in the lower leg and foot and refused medical treatment at the scene, police said.

A felony arrest warrant was issued for Nathaniel Rivera, 27, of Lowell, Massachusetts, police said. He is being charged with robbery, two counts of aggravated assault with a deadly weapon and burglary.

York police received help in identifying Rivera as the suspect from police in Kittery, Eliot, South Berwick and Biddeford, as well as those in Lowell and Tyngsborough, Massachusetts.

Police said the robbery and shooting appear to have been an isolated incident and there is no ongoing danger to the general public.

Police said they are still working to identify two other males and two females who were at the residence at the time of the shooting.

The victim’s truck was recovered during the investigation, police said.