An area real estate firm has sold a 20,000-square-foot office building in Bridgewater for $4 million, in a transaction arranged by Deluccia Commercial Group.