LOWELL — A suspect in two carjackings — one in Lowell and the other an armed heist from a Nashua auto dealership — died after he was shot by police in Newbury on Sunday, authorities say.

State Police rendered first aid to the 31-year-old man, who was pronounced dead at Anna Jacques Hospital in Newburyport, according to Carrie Kimball Monahan, a spokeswoman for the Essex District Attorney’s Office.

The identity of the suspect was not released as of Sunday night.

No police were injured during the shooting incident that occurred in the village of Byfield at about 6 p.m. Sunday, according to State Police spokesman David Procopio.

Lowell Police Capt. James Hodgdon said police received a call about a victim of a carjacking entering the Tavern in the Square restaurant on Chelmsford Street in Lowell at about 3 p.m.

The victim told police she was inside her vehicle near the establishment when a white male opened her car door and told her to get out, Hodgdon said. The victim exited the vehicle with her pocketbook but the suspect grabbed the pocketbook after a struggle, Hodgdon added.

The suspect fled the scene with the stolen car and was last seen on Route 3 headed north, Hodgdon said. The Lowell Police Department announced the crime to the Massachusetts and New Hampshire State Police, telling them to be on the lookout for the suspect and the stolen vehicle.

Hodgdon said the suspect was wanted for carjacking, unarmed robbery and assault and battery of a person 60 or older.

Police located the stolen vehicle in Nashua, according to Monahan.

A short time later, it was announced over the emergency radio broadcast a suspect allegedly stole a vehicle from Tulley Automotive Group on Daniel Webster Highway in Nashua.

The suspect allegedly came into the dealership armed with a knife and demanded a vehicle from an employee, Monahan said. The employee was stabbed by the suspect, who then fled the scene with a black 2020 BMW X5 M. The stolen SUV did not have any license plates.

Monahan said the victim of the stabbing suffered minor injuries and has since been released from the hospital.

State Police said in a press release that they located the stolen SUV and suspect in the vicinity of Prime Gas Station on Central Street in Byfield, a village in the town of Newbury.

State police approached the vehicle, at which time it appeared the suspect attempted to escape, Monahan said. She said the suspect drove into the cruiser parked behind him.

“At that point in the confrontation, an officer or officers discharged a weapon or weapons,” Monahan said. “We have not yet determined how many, or who did it.”

Police stated in the release that it has not been confirmed the suspect in the Nashua theft is responsible for the prior carjacking in Lowell.

Monahan pointed out the suspect is also connected to two other vehicle thefts, one in Boston and another in North Andover. Both occurred on Saturday, she said.

Follow Aaron Curtis on Twitter @aselahcurtis