A Boston doctor sent a desperate text to a friend asking for help moments before being stabbed to death alongside his fiancee.

That’s according to the friend, Matthias Heidenreich, who testified last week during the opening of a double-murder trial for the man, Bampumim Teixeira, alleged to have killed 49-year-old Richard Field and 38-year-old Lina Bolanos, in 2017.

“I was confused for the first minutes,” Mr Heidenreich testified. “I did not realise what [the text] means, wasn’t sure what it is.”

In the texts, Field asks Mr Heidenreich to call 911 because an armed man had entered his home.

The harrowing messages started coming at 7.30pm, when Mr Heidenreich was at a pharmacy. They started with a plea to “Call 111”, in an apparent reference to 911. Other texts said “Gun man” and “in house”, before a final text of “Serious”, according to reporting by the Boston Globe and Boston Herald.

Man released from prison after 28 years for murder he did not commit Show all 6 1 /6 Man released from prison after 28 years for murder he did not commit Man released from prison after 28 years for murder he did not commit Corey Atchison, 48, is escorted into a courtroom at Tulsa County Courthouse in Tulsa, Oklahoma, 16 July 2019, where a judge ruled that he was wrongly convicted of the 1990 fatal shooting of James Lane in Tulsa. Mr Atchison was freed after serving 28 years behind bars for a crime he did not commit. Mike Simons/Tulsa World via AP Man released from prison after 28 years for murder he did not commit Corey Atchison with his daughter Courtney Thomas, centre, and his niece Eyght Brown, two, as he is freed. Mike Simons/Tulsa World via AP Man released from prison after 28 years for murder he did not commit Corey Atchison is greeted by his sisters, including Laura Scott, right, as he is freed from the David L Moss Criminal Justice Center. Mike Simons/Tulsa World via AP Man released from prison after 28 years for murder he did not commit Ruthella Scott receives a hug from her son, and brother of Corey Atchison, after the hearing. Mike Simons/Tulsa World via AP Man released from prison after 28 years for murder he did not commit Family members and supporters of Corey Atchison celebrate in front of the Tulsa County Courthouse. Mike Simons/Tulsa World via AP Man released from prison after 28 years for murder he did not commit Corey Atchison smiles as he is freed from the David L Moss Criminal Justice Center after serving 28 years for a crime he did not commit. Mike Simons/Tulsa World via AP

Mr Heidenreich, according to those newspapers, did not see the texts until he got home. He got no response when he answered the text, he testified last week.

Prosecutors allege that Mr Teixeira slipped into the Boston building where the two victims lived in a penthouse, after stalking the building to find the right time to get in. He had an intimate knowledge of the building, too, because he had worked there previously.

He was “looking, waiting, lurking, out front, out back, for just the right opportunity to present itself”, said John Pappas, the assistant district attorney, in opening remarks.

The timeline presented by the prosecution alleges that a person wearing a bright yellow shirt, a hooded jacket, gloves, and carrying a backpack snuck into the building’s garage at around 4pm on 5 May, 2017. Ms Bolanos then arrived at 5pm, and Mr Field showed up about half an hour later.

Police were not contacted until 8.30pm, when the building’s concierge called after receiving a message from a concerned friend, who had been texted by Mr Field, according to a press release from police.

The 11th floor penthouse at that point was already shocking.

Mr Field was found “dead in a pool of his own blood. His hands bound behind his back with handcuffs,” Mr Pappas said during the trial, according to WCVB. “Lina Bolanos was also in a pool of her blood after having been stabbed repeatedly in the neck.”

Police encountered Mr Teixeira inside the building, where they then shot him, apparently believing he was aiming a weapon at them.

Mr Teixeira’s defence attorney has argued that there is no evidence supporting the prosecution’s case.