The arrests on Thursday were the result of an investigation into an armed carjacking that occurred last Wednesday in Stoughton.

BROCKTON — Police say a "tireless" investigation into a carjacking that occurred last week in Stoughton culminated Thursday morning in the arrest of the suspect and another man, as well as the seizure of four guns, including an AK-47, and cocaine.

Last Wednesday, at about 7:30 a.m., Stoughton police responded to a report of an armed carjacking. The victim was a 64-year-old woman who was leaving work at The Copley on Sumner Street that morning.

"When she got into her vehicle, a man in the back seat struck her in the face with what she described as a gun," said Stoughton police Lt. John Bonney. "She was then ordered to go into the passenger seat but she refused. She continued to drive down Sumner Street until she caught the attention of a passing motorist."

We can deliver news just like this directly to your inbox. You can sign up for This Just In (a daily 7:30 p.m. newsletter with items we've posted that day), News Alerts (so you don't miss anything important) and more. It's customized to your preferences -- and it'll only take a few seconds.

The suspect was picked up by another vehicle and police obtained the license plate of that car from a witness. Throughout that day, police searched for the involved vehicle, which came up on several license plate readers in the area. Randolph police located the vehicle between 12 and 1 p.m. at the Rosemont Square apartment complex at 11000 Chestnut West.

Police questioned two people that day, but released them.

"Our detectives division worked tirelessly on this from the moment they got the case," Bonney said.

On Thursday morning, Stoughton, Randolph and Brockton police detectives, as well as the United States Marshals Service, went to 94 North Warren Ave. in Brockton with a warrant for the arrest of 25-year-old Kristopher Depina of Mattapan.

Police say as detectives approached the home, someone inside noticed the police and tried to flee.

"When police got inside the building, two suspects jumped from a second- and third-floor window," said Brockton police spokesman Darren Duarte.

Depina attempted to run from detectives, Bonney said.

"It took a number of officers to place him in handcuffs," he said.

Police say some officers suffered minor injuries during the incident.

A second man, identified by police as 21-year-old Jason Anthony Ortiz, was also apprehended, Duarte said.

Brockton police say they recovered four guns, ammunition and cocaine during the incident.

"During the arrest, detectives located and seized a loaded AK-47 assault rifle, a .40-caliber handgun, a 9mm pistol and a .25-caliber gun," Duarte said. "They also seized four large-capacity magazines, along with 8.1 grams of cocaine, and other items used to package and sell illegal narcotics."

Depina will be arraigned Friday in Stoughton District Court on charges of armed carjacking, assault and battery with a dangerous weapon, kidnapping, conspiracy to commit a crime, breaking and entering into a vehicle and armed robbery while masked related to the Stoughton incident. But he will also be charged in Brockton District Court at a later date with two counts of illegal possession of ammunition, illegally carrying a firearm, three counts of possession of a large-capacity firearm, three counts of illegal possession of a large-capacity feeding device, illegal possession with intent to distribute a Class B drug and conspiracy to violate the drug law.

Ortiz, of Rhode Island, will be arraigned Friday in Brockton District Court on charges of possession of a firearm without a firearms identification card, illegally carrying a firearm, illegal possession of ammunition and illegal possession with intent to distribute a Class B drug.

Stoughton police have also obtained a warrant for the arrest of 23-year-old Mykilah Stewart of Randolph on charges of conspiracy to a felony punishable by imprisonment and knowingly misleading police.

Senior reporter Cody Shepard can be reached by email at cshepard@enterprisenews.com. You can follow him on Twitter at @cshepard_ENT.