Three Raleigh families were displaced late Thursday night after their apartment building caught fire, officials said.