An 18-year-old man suffered critical injuries and lost a piece of his left hand while trying to set off illegal fireworks in Newark on Tuesday, officials said.

The man was putting a mortar into a tube on the 36000 block of Port Sailwood Drive in Newark when an explosion occurred, blowing away part of the teen’s hand, according to Aisha Knowles, a spokeswoman for the Alameda County Fire Department.