NEW YORK (AP) — A 30-year-old man collapsed and later died after crossing the finish line at the Brooklyn Half Marathon on Saturday morning.

A statement from the nonprofit New York Road Runners confirmed the man was a participant in the half-marathon and collapsed after finishing the race.

A New York City fire department spokesperson says the runner was taken to a nearby hospital and later pronounced dead.

It was unclear what caused the man to collapse.

A heat advisory is in effect for New York City until 8 p.m. Saturday.

The nonprofit says temperatures ranged from the low 60s to high 70s during the race, which began at 7 a.m.