A building with apartments and a tire shop at 144 Fourth Avenue in Park Slope, Brooklyn, was sold for $3.2 million.