Lying in a hospital bed with multiple gunshot wounds, his eyes opening periodically, Bampumim Teixeira was arraigned on two counts of murder at Tufts Medical Center in Boston on Monday afternoon.

A judge standing beside Teixeira — a 30-year-old from Chelsea, Mass. — entered two not-guilty pleas in the killings of Richard Field, 49, and Lina Bolanos, 38 — Boston doctors who were engaged to be married.

During the arraignment, NBC News reported, Teixeira nodded “only slightly in response to questions.”

He was ordered to be held without bail, authorities said. If convicted, the maximum sentence Teixeira would face is life in prison without the possibility of parole.

On Monday morning, a spokesman for the Suffolk County District Attorney’s Office, Jake Wark, told The Washington Post that Teixeira would be charged with two counts of murder but noted that investigators are still probing whether there was a relationship between the accused and the victims, both of whom were anesthesiologists.

When Boston police entered an 11th-floor penthouse apartment Friday night, they found a gruesome scene: the bodies of a man and a woman bound at the hands, their throats slit and blood on the walls of the luxury condominium. The killer had left cut-up photos of the couple and a message of retribution.

The discovery of the bodies with “traumatic injuries” followed a call to police about an armed person in the building, an apartment complex on Dorchester Avenue in South Boston, police said. When officers arrived at the building about 8:40 p.m. Friday, a man immediately started shooting at them, prompting police to return fire.

Officers struck the man and, after a violent struggle, placed him in custody and took him to a hospital for treatment of injuries that were not life-threatening, according to a police statement. No officers were hit by gunfire, but several were treated at hospitals for injuries that were not life-threatening.

“I mean, you have a guy here who just killed two people,” Boston Police Commissioner William Evans told reporters. “And he had nothing to lose.”

Evans identified the armed man as Bampumim Teixeira.

A Massachusetts man is expected to be arraigned after the gruesome murder of two doctors in Boston on May 5. (Reuters)

Teixeira’s ex-girlfriend told the Boston Globe that he was a former security guard who had just finished a nine-month sentence for robbing two banks. In June, Teixeira demanded money at a Boston bank by passing a note. Two years earlier, he had committed the same crime, according to the Suffolk County District Attorney’s Office.

It was unclear whether Teixeira had obtained a lawyer.

Evans told reporters that authorities think the victims and their killer knew one another.

“That’s what we’re going on, that they were targeted,” Evans told Boston’s CBS affiliate.

For “someone to come here, go up to the 11th floor, to the penthouse,” Evans told WCVB, “we got to believe that somehow there was some type of knowledge of each other.”

A key question in the investigation is how the killer gained access to the couple’s apartment, which is in a well-secured, upscale building.

“You can’t get up there without a key,” building resident Jack Fu told WCVB. “The elevators wouldn’t even open the door for you without a key. So there’s no access unless someone lets you in.”

In the moments before his death, Field managed to send one last text message to a friend. He pleaded for help, saying there was an armed man inside his home, the Boston Globe and WCVB reported.

His body and that of his fiancee were found by a SWAT team during a sweep of the building after the shootout between the gunman and police.

Field was a physician at North Shore Pain Management, and Bolanos was a pediatric anesthesiologist at Massachusetts Eye and Ear. Their patients and colleagues mourned their deaths over the weekend, remembering them as respected members of the medical community.

“Dr. Bolanos was an outstanding pediatric anesthesiologist and a wonderful colleague in the prime of both her career and life,” John Fernandez, president and chief executive of Massachusetts Eye and Ear, said in a statement.

Dear Patients, Friends, and Colleagues: It is with profound sadness and heavy hearts that we inform you of the tragic...

Posted by North Shore Pain Management on Saturday, May 6, 2017

Field was described by North Shore Pain Management as a “guiding vision” who was “instrumental” in the creation of the practice in 2010. Before his work there, Field was an anesthesiologist and a pain management specialist at Beverly Hospital and Brigham and Women’s Hospital. His biography said he had been an instructor at Harvard Medical School.

“His tragic and sudden passing leaves an inescapable void in all of us,” a statement on the clinic’s website read, calling Field “a tremendous advocate for his patients.”

One of his patients, Debra Harrington, told the Boston Globe that she had seen Field regularly for more than 12 years for treatment of back pain. Even after Harrington moved to Marlborough, she continued to drive more than an hour to see him in Beverly, “because I didn’t want to lose him,” she said. “It was worth it.”

“I feel like I lost a friend,” Harrington said Sunday night after hearing the news of his death.

Harrington recalled one time when she was scared before undergoing an epidural. Field stood by her bedside, praying with her.

“I don’t know what religion he is,” she said. “I said, ‘Will you pray with me?’ He said, ‘Of course I will.’ ”

This post has been updated.

Read more: