Improperly discarded smoking material caused an early morning fire that tore through a north Raleigh apartment building Monday and displaced four people, firefighters said.