A private investor has purchased a 17-unit apartment building in Kearny for $4 million, brokers with Marcus & Millichap announced Monday.