Firefighters douse flames, help residents from apartment building