The five-alarm fire at an apartment complex under construction in Gilbert caused nearby residents to be evacuated.