Residents of the 25-unit building were evacuated, and no one was seriously injured.