Apartment fire leaves 2 families homeless