suspect Bampumim Teixeira
Prosecutor John Pappas (L) reads as Judge Michael Bolden (R) takes notes as 30-year-old suspect Bampumim Teixeira is arraigned on two counts of murder in his hospital room at Tufts Medical Center in Boston, Massachusettes, US, on 8 May, 2017 REUTERS/David L. Ryan/Pool

A prosecutor in Boston said that one of the two doctors, who were murdered at their luxury penthouse apartment, had sent their last message to a friend saying, "Gunman in the house".

The prosecutor revealed the final message of the anesthesiologists on Monday (8 May) during the hospital bedside arraignment of Bampumim Teixeira, who somehow managed to get into the $1.9m (£1.47m) apartment of the couple on 5 May evening and allegedly tied them up and slit their throats.

The 30-year-old accused made his first court appearance from his room at Tufts Medical Center, where he was receiving treatment for non-life threatening injuries.

He got injured during a shootout with police at the apartment where the bodies of 38-year-old Lina Bolanos and 49-year-old Richard Field – originally from London – were found, the BBC reported.

Two counts of murder charges have been put against Teixeira and a plea of not guilty was presented on his behalf by his lawyer.

According to reports, Teixeira was arrested after police found him dressed in all black in the couple's penthouse while responding to a call by a friend of the victims, who they texted, of an intruder at the high-rise apartment complex in South Boston.

Following an exchange of fire, police struck him in the hand, abdomen and leg and took him to the hospital for treatment. A message of revenge was also found written on the wall, however, it is not clear whether Teixeira knew the victims and motive is also not clear behind the crime.

Suffolk Assistant District Attorney John Pappas declined to provide cause of the death of the victims, but said the duo had suffered "obvious trauma" and were declared dead at the scene.

Massachusetts prosecutors have requested the suspect to be held without bail due to his past criminal history. Teixeira was recently released from jail after serving a prison term of nine months for bank robbery.

His next hearing is scheduled for 8 June.