CALAIS, Maine (AP) — Maine State Police say a man celebrating the Fourth of July died when he tried to launch a firework off the top of his head.

Stephen McCausland, a spokesman for the Maine Department of Public Safety, says 22-year-old Devon Staples of Calais had been setting off fireworks with friends on Saturday night in the backyard of a friend’s home.

READ MORE: 'It’s Just A Miracle': Plymouth Mom Recovering From COVID After Emergency C-Section, 12 Days On Ventilator

RELATED: Man Seriously Injured In Saugus Fireworks Accident

He says Staples placed a fireworks mortar tube on his head and set it off, injuring his head. He died instantly.

Police say the friends had been drinking.

READ MORE: WooSox Celebrate Home Opener At New Polar Park In Worcester

McCausland says Staples’ death marks Maine’s first fireworks fatality since the state legalized fireworks several years ago.

RELATED: 2 Children Hurt Playing With Fireworks In Boston

Calais is in eastern Maine, on the Canadian border near New Brunswick.

MORE NEWS: Boston Children's Hospital Begins Vaccinating Kids Ages 12-15 Following FDA Approval

Copyright 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.