A real estate investment firm has reaped $21 million from the sale of two office buildings in Secaucus, following a transaction brokered by CBRE Group Inc.