WAKEFIELD, Mass. (AP) _ Gunfire erupted at an office building Tuesday, killing at least one person. A newspaper and a television station said seven people were killed, but police wouldn't confirm the reports.

One gunman was in custody, state police said. SWAT teams were searching the building.

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.

He said he saw one body covered with a blanket.

``One of the bodies is right inside the lobby entrance,'' he said.

A sheet was hung in the doorway, blocking the view from outside.

WHDH-TV and the Wakefield Item said seven people were killed. They cited unidentified public safety officials.

Three ambulances were parked outside the Harvard Mills office complex, a three-story, red brick former factory that houses several companies.

Wakefield is 10 miles north of downtown Boston.