The longtime owners of a 24-unit apartment building in Bayonne have sold the property for $4.4 million, according to a brokerage team with Veerman Asset Management.