BANGOR, Maine — A New York man denied Friday at the Penobscot Judicial Center that he shot and killed one man and wounded another in the early morning hours of Nov. 27 at a Center Street apartment in Bangor.

Robert Hansley, 27, of New York City, pleaded not guilty to one count each of murder and elevated aggravated assault.

Superior Court Justice William Anderson ordered that Hansley, who goes by the first name Ben, continue to be held without bail at the Penobscot County Jail.

Hansley was arrested with Thomas Ferguson, 37, of New York City on the night of Nov. 27 outside a Hammond Street apartment. Earlier that morning, the men allegedly shot and killed Robert Mark Kennedy, 38, of Bangor and wounded Barry Jenkins, 40, of New York.

Jenkins told Bangor Detective Josh Ruhn that Hansley and Ferguson “brandished handguns and both fired multiple rounds at both of them,” according to an affidavit made public Friday.

Jenkins was found by police on the front steps of 201 Center St. with multiple gunshot wounds to the chest and abdomen, it states. Kennedy’s body had multiple gunshot wounds and was found inside the apartment draped over a DVD rack near a window.

One witness told detectives that “it appeared that Robert had been trying to get out of the window to escape.”

In addition to murder and elevated aggravated assault, Ferguson also is charged with tampering with a victim. He pleaded not guilty Jan. 29 and was ordered held without bail.

The prosecution has asked the men be tried together. Defense attorneys have said they would ask that the two be tried separately.

A fight over a woman may have led to the shooting, according to information made public Jan. 29 during a probable cause hearing for Ferguson. Anderson found there was probable cause for the charges filed against him.

All court records tied to the case were sealed until both men had been arraigned. Anderson unsealed them after Hansley entered his not guilty pleas.

Bangor police Detective Timothy Shaw testified last month about what he wrote in the affidavits after interviews were conducted with Jenkins and two women who were at the apartment at the time of the shooting.

A woman on Hammond Street told police she had been dating “Ben” and that he and Ferguson, who she said was “Ben’s brother,” had been staying with her “off and on.”

“We were told there was a beef between Kennedy and Ferguson that had been going on for some time,” the detective said. “We were told it was over a girl, but exactly what it was about was unclear.”

Shaw said he did not know who the woman might have been.

One of the women at the Center Street apartment told police she was outside smoking when Ferguson and another man went into the apartment, Shaw said. The woman reported she heard shots, then hid near a fence until they left.

The second woman was inside the apartment, Shaw testified, but changed her story about what she witnessed. The day before her grand jury testimony, she said that while she had been in the bedroom at the time of the shooting, the door was not closed, as she had stated before. In her third or fourth statement to police, she reportedly said she saw the men being shot.

No guns were found in the Center Street apartment or on either man when they were arrested, the detective said. A .40-caliber pistol was found at the Hammond Street apartment, but it could not be traced to either man.

Heroin was found on Kennedy’s body, but no other drugs were found in the apartment or on the defendants when they were arrested, Shaw said.

Three people called police about the shootings, according to 911 transcripts obtained by the Bangor Daily News through a Freedom of Access Act request. One call came from inside the Center Street apartment and two were made by neighbors.

When Shaw testified, no fingerprint or DNA evidence had linked either man to the apartment, but ballistics and other tests were still pending at the Maine State Police Crime Lab, he said.

A trial date is not expected to be set for at least six months.

If convicted of murder, each man faces between 25 years and life in prison.