WAKEFIELD, Mass. (AP) -- Seven people were killed in a burst of gunfire at the offices of an Internet consulting company Tuesday and police arrested a former employee armed with an AK-47 rifle, a shotgun and a handgun.
The gunman was to be arraigned on seven charges of murder, said John McAvoy, chief prosecutor for Middlesex County.
Police found the gunman in the lobby of the building and quickly subdued him, McAvoy said.
There were no other gunmen and no one else was injured, the prosecutor said.
The shooting took place in the offices of Edgewater Technologies, an Internet consulting company, said Frank Harrington, a contract consultant for the company. The company has its headquarters in Wakefield and offices in Alabama, Arkansas, Minnesota and New Hampshire, according to its Web site.
Harrington was in the building during the shooting and said he heard eight to 10 shots.
The prosecutor identified the gunman as Michael McDermott, 42.
The shooting, which McEvoy would describe only as "work-related," took place in the first-floor office of Edgewater Technologies.
Nancy Pecjo, a developer with the company, said 30 to 40 employees worked at the Wakefield office. She did not know who had been shot.
"It's a great company, a wonderful company," she said, adding that she didn't know of anyone who'd been fired recently or was disgruntled.
"It's a small company, you get to know everybody there," she said. "When something like this happens it's very distressing."
The shootings took place in the Harvard Mills office complex, a three-story, red brick former factory that houses several companies.
Wakefield is 10 miles north of downtown Boston.