BOSTON (AP) — A 27-year-old man died in a Nantucket diving accident, hours after he raised $100,000 for a Lou Gehrig’s disease charity in honor of his friend who inspired the ice-bucket challenge sensation.

Nantucket Police tell the Boston Globe that Corey Griffin dove into the water from the “Juice Guys” building at around 2 a.m. Saturday. An off-duty lifeguard was nearby and recovered Griffin, who was pronounced dead at a hospital.

Griffin’s family says he was friends with former Boston College baseball player Pete Frates, whose family and friends launched the ice-bucket challenge to raise awareness and funds for charity. Twenty-nine-year-old Frates was diagnosed with the neurodegenerative disease, also known as ALS, in 2012. The movement has taken off around the country recently. Griffin, of Scituate, had been fundraising in Nantucket.