A buyer has paid more than $4 million for a roughly 31,000-square-foot industrial building in Middlesex County, according to a brokerage team with Deluccia Commercial Group.