An investor has purchased a 35,000-square-foot office building in Union Township for $4 million, in a newly announced deal by The Boniakowski Commercial Real Estate Group.