This is an update of a story posted at 9:24 a.m. Friday.

HOLYOKE -- The shooting death of 55-year-old Anthony Sirakowski Thursday night, according to court documents, was apparently the result of a botched robbery attempt that occurred shortly after he purchased a small amount of marijuana from one of two suspects now accused of killing him.

Police statements filed in Holyoke District Court indicate that Sirakowski had just paid $50 to Nashon Perez, 20, of 63 Pine St. for drugs. Police said Perez then left to tell Eric Carattini, 24, of 23 Hamilton St., where Sirakowski was and that he had cash on him.

At that point, Carattini is said to have picked up a gun and set off to rob Sirakowski, telling witnesses, "I'm gonna go grab some money."

Perez and Carattini were each arrested Thursday night and charged with Sirakowski's murder.

Both denied the charge at their arraignments Friday in Holyoke District Court. Each was ordered held without the right to bail and is due back in court on Jan. 23.

The police investigation narrative, authored by Holyoke Police Officer Jennifer L. Sattler, identifies Carattini as the suspected shooter. Perez was apparently not present for the shooting, but the police statements say he is suspected of telling Carattini that Sirakowski had money and where he could be found.

Sirakowski was shot twice inside a trailer at the rear of 100 Pine St. sometime around 5:30 p.m. Thursday.

When police arrived, they found Sirakowski lying on his back on a bed inside the trailer and suffering from at least one gunshot wound. He was described as unresponsive and had no pulse.

He was rushed to Baystate Medical Center in Springfield, where he was pronounced dead. It was determined he had been shot twice, according to the police report.

According to the police reports, an unidentified witness told police that he and Sirakowski had gone to the bank to withdraw money. The amount was not disclosed. The witness told police that, a short time later, Sirakowski called someone to arrange the purchase of marijuana "from a man on Pine Street."

A short time after the transaction, Sirakowski and the witness were inside the trailer when a man the witness knew as Eddy came in with a gun and demanded, "Give me your (expletive)."

The man fired two shots and ran off, and Sirakowski collapsed backward into a wall and then onto the bed. The witness told police he initially thought Sirakowski had been shot in the leg.

The police report says detectives examined Sirakowski's cellphone and found that he had recently called Perez's number.

When Perez was brought to the police station for questioning hours later, he gave inconsistent and contradictory information about his knowledge of the shooting, police said.

He first told detectives he had no knowledge of Sirakowski's killing. Then he said he learned of it from a phone conversation with his boss' brother. And then he changed his story again to say he learned about it from his girlfriend, who read about it on Facebook.

Perez eventually admitted to police that he had sold marijuana to Sirakowski for $50 inside his trailer, then went home. At some point in the evening he told Carattini about it.

Perez's statement and the statement from an unidentified witness indicate that Carattini left the apartment with a gun, saying that he was going to get money. Perez told police he was "pretty sure" Carattini was going to rob Sirakowski.

Each told police that when Carattini returned a while later, he was agitated and admitted to shooting Sirakowski.

Court records show Perez told police that Carattini told him he went there to rob Sirakowski, "but a big guy grabbed him and he shot and ran away."

The witness who was in the trailer at the time of the shooting picked Carattini out of a photo array as the man who fired the shots, court records said.

Sirakowski's death marked the city's second homicide of 2016. In 2015, there were two homicides in Holyoke.

At district court, each was assigned a public defender. Attorney Joan Williams of

Northampton will represent Perez, while attorney Alan Black will represent Carattini.

Hampden District Attorney Anthony D. Gulluni said the investigation into the shooting is ongoing with Holyoke Police and state police detectives assigned to his office.

"I would like to thank the Holyoke Police Department and the Massachusetts State Police Detective Unit assigned to my office for their quick action and skill that led to these two arrests," Gulluni said.