People at the beach went to the woman’s rescue and helped her ashore, the authorities said, but she died at a hospital.