A building housing a garment factory has collapsed near the Indian city of Mumbai, killing three and injuring more.