NEWINGTON, Conn. (AP) _ A disgruntled employee killed four workers at state lottery headquarters today, chasing the lottery chief into the parking lot and gunning him down before fatally shooting himself.

``He came in with a gun and lots of ammunition. He was heavily armed,'' said Master Sgt. Gregory Chelso of the state police.

The gunman, 35-year-old Matthew Beck of Cromwell, killed three employees in the building, then shot lottery chief Otho Brown in a parking lot about 100 yards away, Chelso said.

Beck, a eight-year lottery employee who had returned from medical leave Feb. 25, then shot himself in the head. He died at Hartford Hospital.

Beck had filed a grievance in August claiming he had been given a job outside his work classification. It was unresolved.

``Yes, he has been troubled, but I don't want to talk to you right now,'' his father, Donald Beck, said in a telephone interview.

Also among the victims was Linda Mlynarczyk, the lottery's chief financial officer and a former one-term mayor of New Britain. The other two victims were Rick Rubelmann, vice president of operations, and Michael Logan, a data processor.

When the shooting started, workers fled the building into nearby woods.

A 45-year-old man suffered a head injury as he jumped onto a moving vehicle while he was trying to get out of the shooter's way, Hartford Hospital spokesman James Battaglio said.

Police blocked off the area surrounding lottery headquarters, about 10 miles south of Hartford. One body was lying on the ground in the parking lot, covered by a piece of canvas.

Police put all lottery employees on school buses and questioned them.