Authorities identified the victim as Gabriel Ruiz-Urresto, 37. The accident happened in the backyard of his home in Central Islip around 9:30 p.m. Saturday.
Police say he lit the firework and it blew up in his face and struck him in the head.
He died at the scene.