BOSTON — An inmate accused of wounding a deputy during an escape attempt at a Boston hospital is being held on $1 million bail.

Police says 36-year-old Raymond Wallace of Marblehead snatched a gun from one of two Middlesex County deputies escorting him for treatment Wednesday and shot the deputy in the leg. The other deputy shot Wallace in the chest.

Wallace was being held on armed robbery charges at the time. A prosecutor says the deputies removed Wallace's handcuffs to allow him to use a restroom, where he managed to get out of his leg restraints as well.

Wallace was arraigned Tuesday on assault, escape and firearms charges in his bed at Massachusetts General Hospital. A not guilty plea was entered.

The wounded deputy is recovering.