Firefighting teams put out fire that erupted in a garment factory