BANGOR, Maine — Police on Monday identified the man who died early Friday in a shooting on Center Street as Robert Mark Kennedy, 38, of Bangor.

Investigators have not released the identity of the second victim. He is being treated at Eastern Maine Medical Center, according to Sgt. Tim Cotton, spokesman for the Bangor police.

An autopsy of Kennedy’s body was completed Sunday, but the medical examiner’s office declined to release any information about what it found.

“I can’t release any information at this time, the investigation remains active,” Mark Belserene, spokesman for the office of the chief medical examiner, said Monday.

Cotton said the investigation into what led to the shootings is ongoing. He declined to comment on whether investigators suspect the incident might be drug-related.

The two New York men charged in connection with the shootings have extensive criminal histories in New York, according to court records in that state.

Robert Hansley, 27, and Thomas Ferguson, 37, both of Brooklyn, New York, were arrested Friday night on charges of murder and elevated aggravated assault. Police took them into custody about 7 p.m. outside a Hammond Street apartment near Webster Avenue.

They are being held at the Penobscot County Jail.

The men are scheduled to make their first appearances before Superior Court Justice William Anderson at 8 a.m. Tuesday at the Penobscot Judicial Center.

They will be held without bail at the Penobscot County Jail until their attorneys request hearings on whether there are conditions under which they could be released.

Ferguson has been convicted of attempted murder, robbery and lesser charges since 1995, according to a criminal history record search obtained from the New York State Unified Court System.

He pleaded guilty to attempted murder in December 1995 and was sentenced the next month to a prison term of four to 12 years. Ferguson also pleaded guilty to robbery and was sentenced to 6½ to 13 years in prison. In 1999, Ferguson was sentenced to 1½ to three years after pleading guilty to promoting prison contraband.

Bethany Haas, spokeswoman for the Brooklyn district attorney’s office, said Monday that she could not access more information about Ferguson’s convictions and the incidents that led to them because of their age.

He was released on parole on June 18, 2010, from Coxsackie Correctional Facility in Coxsackie, New York, according to the Department of Corrections and Community Supervision for the State of New York. Conditions of his parole were not immediately available Monday.

Since 2011, Hansley has been convicted of drug and sex charges. He pleaded guilty in 2011 and 2012 in separate cases to criminal possession of marijuana. In each case, he was sentenced to time served. In February 2014, Hansley pleaded guilty to sexual misconduct and was sentenced the next May to one year in prison. He is listed on the New York sex offender registry.

Kennedy, who was born in Connecticut, has a criminal record in Maine that includes a felony burglary and misdemeanor convictions, according to his criminal history record obtained from the Maine State Bureau of Identification. He also was charged with possession of methamphetamine on Sept. 25 after being stopped by Brewer police for speeding, according to the Penobscot County district attorney’s office. He had not yet been indicted by the Penobscot County grand jury on the charge but was scheduled to appear at the Penobscot Judicial Center on Jan. 12.

Maine records list Kennedy’s residence on Oct. 15 as an address on Parkway North in Brewer. Before that he lived in Bangor at an address on Vernon Street and two different addresses on Center Street but not at the address of the duplex where he died.

Police originally went to 201 Center St. at 3:30 a.m. and were there throughout the day Friday. The evidence response team’s truck was outside the apartment Monday morning, but it was gone by the afternoon.

Police cleared the scene and took down the crime scene tape, according to Cotton.

The building consists of a pair of two-story apartments facing the street, with several other apartments in an addition on the back. Knocks on the doors of those apartments over the weekend and Monday went unanswered.

City records show the duplex is owned by Jimmy Phan, who owns rental and business properties across the city. He purchased the building in 2002 from a Scarborough firm. Multiple attempts to reach Phan were unsuccessful.

Neighbors over the weekend expressed relief that arrests had been made in the case.

Kennedy’s homicide was the 19th in Maine this year, according to state police spokesman Stephen McCausland. It is the first homicide in Bangor since 2013, according to police.