NEW YORK — All nine people injured during a dramatic confrontation between police and a gunman outside the Empire State Building were wounded by gunfire from the two officers, police said Saturday, citing ballistics evidence.

The veteran patrolmen who opened fire on the suit-clad gunman, Jeffrey Johnson, had only an instant to react when he whirled around and pointed a .45-caliber pistol at them as they approached him from behind on a busy sidewalk.

Officer Craig Matthews shot seven times, and Officer Robert Sinishtaj fired nine times, police said. Neither had ever fired their weapons before on a patrol.

The volley of gunfire felled Johnson in just a few seconds and left nine other people bleeding on the sidewalk.

In the initial chaos Friday, it wasn’t clear whether Johnson or the officers were responsible for the trail of the wounded, but based on ballistic and other evidence, “it appears that all nine of the victims were struck either by fragments or by bullets fired by police,” Police Commissioner Raymond Kelly told reporters Saturday at a community event in Harlem.

Police officials have said the officers appeared to have no choice but to shoot Johnson, whose body had 10 bullet wounds in the chest, arms and legs.

The officers confronted Johnson as he walked, casually, down the street after gunning down a former co-worker on the sidewalk outside the office they once shared.

The shooting happened at 9 a.m., as the neighborhood bustled with people arriving for work.

The gunman and his victim, Steve Ercolino, had a history of workplace squabbles before Johnson was laid off from their company, Hazan Import, a year ago. At one point, the two men had grappled physically in an elevator.

John Koch, the property manager at the office building where the men worked, said security camera footage showed the two pushing and shoving. The tussle ended when Ercolino, a much larger man, pinned Johnson against the wall of the elevator by the throat, Koch said. Ercolino let him go after a few moments, and the two men went their separate ways.

“They didn’t like each other,” Koch said.

After shooting Ercolino, Johnson, an eccentric T-shirt designer and avid bird-watcher who wore a suit every day, even when photographing hawks in Central Park, walked away as if nothing had happened.

Alerted by a construction worker, officers Matthews and Sinishtaj gave chase as Johnson rounded a corner and walked along Fifth Avenue in front of the landmark skyscraper.

A security videotape from the scene shows several civilians — including three sitting on a bench only a few feet away — scattering as the officers opened fire.

Police have determined that three people were struck by whole bullets — two of which were removed from victims at the hospital — and the rest were grazed “by fragments of some sort,” Kelly said.

Two women with leg wounds and a man with a wound to his buttocks required surgery and remained hospitalized Saturday.

They were listed in stable condition.