PLEASANT VALLEY, N.Y. (AP) _ A man wielding a shotgun opened fire on two state troopers, killing one officer and critically wounding the other before apparently fatally shooting himself, authorities said.

The man opened fire late Sunday after Trooper Robert Dunning and Sgt. Robert Garzetta responded to a call about a man driving around with a shotgun, said Lt. Michael T. Wright, a police spokesman.

The troopers spoke to him briefly about 30 feet away from his pickup, and he then apparently got out of the truck, authorities said.

''They attempted to talk to him to get him to put the gun down,'' said another spokesman, Sgt. Dennis Cody, but the man opened fire.

The first shot hit Dunning in the chest, Cody said, quoting Garzetta, who was struck in the leg.

Cody said Garzetta crawled back to his cruiser for cover and to radio for help. He said the gunman suffered at least two wounds: one to the head and one in the leg. He said the head wound appeared to be self-inflicted with the shotgun and the shot in the leg appeared to be fired by Garzetta.

An autopsy scheduled for today may provide confirmation, Cody said.

Dunning, 45, a 20-year state police veteran, died shortly after arriving Vassar Brothers Hospital in Poughkeepsie, Cody said. His 32-year-old partner was listed in critical but stable condition at St. Francis Hospital in Poughkeepsie, an emergency room nurse said today.

Wright identified the gunman as Karl R. Kuplins, 41, of Pleasant Valley.