An inbound commuter rail train crashed into a track maintenance crew Tuesday, killing two workers and seriously injuring at least one other, transportation officials said. Four other workers and about 10 passengers were treated for minor injuries.

The afternoon train was headed from Lowell to Boston with minimal passengers about 2 p.m. when it struck a piece of track repair equipment head-on near the Anderson station in Woburn.

One worker was on the equipment and five others were nearby, said Joe Pesaturo, a spokesman for the Massachusetts Bay Transportation Authority.

The maintenance crew workers are employed by the Massachusetts Bay Commuter Railroad, a transportation consortium hired by the MBTA in 2003 to manage and operate the commuter rail system.

The names of the victims were not immediately released, pending notification of their families.

"MBCR is stunned and deeply saddened by today's horrific tragedy. Our hearts go out to the family and loved ones of these workers," MBCR General Counsel Richard A. Davey Jr. said.

About 10 passengers were taken to area hospitals with minor injuries and because they were "shaken up," Pesaturo said.