The man accused of killing a Weymouth police officer and an elderly woman was arraigned in Quincy District Court Tuesday afternoon on two counts of murder.

It was a sea of blue inside the courtroom as Weymouth police officers observed the arraignment of 20-year old Emanuel Lopes — he is charged with murdering Officer Michael Chesna and 77-year old Vera Adams.

Prosecutors said that on Sunday morning at approximately 7:30, Lopes struck Chesna in the head with a rock and grabbed his handgun and shot him ten times. Lopes then fired several more shots, with at least one striking Adams in her own home.

The prosecutor told the judge, “Officer Chesna immediately fell to the ground and dropped his firearm. The defendant was then observed picking up that firearm and eventually firing several times at officer Chesna's head and torso.”

Lopes' attorney said Lopes has a history of psychiatric issues, but the judge declined a request for further mental health examination.

Lopes, who was shot in the leg by police, appeared in a wheelchair and hospital gown. A not guilty plea was entered on his behalf. Lopes is being held without bail at the Dedham House of Correction. He’s due back in court for a probable cause hearing on August 15.