John Francis McHale, 41, who crouched behind a desk in the IBM building in Bethesda yesterday and could see the feet of a gunman moving toward him, firing as he came, was one of the lucky ones.

One of the bullets fired in the wild shooting spree that killed two people and spread carnage and terror through the office building caught McHale in the shoulder. But of the seven surviving persons who suffered gunshot wounds, McHale, a systems engineer from Columbia, appeared to have had the least serious injury. The wound was superficial and he was released from Suburban Hospital after receiving stitches.

Richard Carl Kreutzberg, 44, of Chevy Chase, one of McHale's coworkers who had gone with him to investigate the sudden commotion, was only a few feet from McHale when the gunman's bullets ripped into his left chest and shoulder.

Kreutzberg was listed in serious but stable condition last night at Suburban, where a total of 10 survivors, who received a variety of injuries, were taken by ambulance and police car.

The two who died in the shooting were identified as Hung Phi Nguyen, 40, of the 1000 block of Good Hope Drive in Silver Spring, and Larry Lewis Thompson, 56, of 9018 Streamview La., Vienna. One of the most seriously injured of the 10 survivors, Jessie Roberts Lewis, 69, a security guard at the IBM office building, was listed in critical condition. He was shot three times, lost a large quantity of blood and was thought dead when taken to the hospital.

Authorities said Lewis, who suffered cardiac arrest after being shot, was resuscitated at the hospital but later suffered a heart attack in the operating room. He was resuscitated again, but doctors warned that a bullet that passed through the main artery supplying the brain had cost him a large amount of blood, and they said his prospects for full recovery were not clear.

Two other persons were listed in critical condition: John O'Leary, 48, of Herndon, who was wounded in the neck and groin, and Charles Dickerson, who was shot in the chest and abdomen.

Among those taken to the hospital was one man described by a hospital official as a hero.

Erich Baumgartner, 48, of Rockville was injured when he scuffled with the gunman in an attempt to subdue him, according to Kenneth Philbrook, assistant director of Suburban's emergency department.

Baumgartner was being treated at the hospital for a broken nose, and face and hand cuts.

Listed along with Kreutzberg in serious but stable condition was Warren E. Winnie III, 37, of Harpers Ferry, W. Va. He suffered a gunshot wound in the abdomen.

The seventh surviving gunshot victim was identified as Doug Sontheimer, 40, of Silver Spring, who was hit in the left thigh.

Others taken to the hospital included Kenneth Tutwiler, 61, of Rockville, and Pat Rollins, 28, of Gaithersburg. Authorities said Tutwiler was admitted to the hospital about 6 p.m. with a heart attack related to the stress of the events. They said Rollins was treated for a cut suffered when she fainted and struck her head.