Emergency officials work near the scene of an explosion in Central Park, New York, Sunday, July 3, 2016. A firework that exploded when a 19-year-old unwittingly stepped on it Sunday in Central Park, seriously injuring his left foot, didn't appear to be designed to intentionally hurt people, police officials said. (AP Photo/Seth Wenig)
Emergency officials work near the scene of an explosion in Central Park, New York, Sunday, July 3, 2016. A firework that exploded when a 19-year-old unwittingly stepped on it Sunday in Central Park, seriously injuring his left foot, didn't appear to be designed to intentionally hurt people, police officials said. (AP Photo/Seth Wenig) Credit: Seth Wenig

New York — Investigators are conducting a forensic examination to identify the explosive compound that blew up in Central Park, seriously injuring the foot of a man who stepped on it, but authorities don’t believe the device was designed to intentionally hurt people, police said Monday.

The homemade explosive had been inside a plastic bag when it went off Sunday, said Lt. Mark Torre, commanding officer of the New York Police Department’s bomb squad. Investigators believe it was created by “an explosive hobbyist or experimenter” who had some knowledge of chemistry, he said.

The 19-year-old man, who police did not identify, was walking in the park with two friends when he stepped on a rock covering the explosive. He was to undergo surgery to his left foot and was in stable condition at a hospital, fire officials said.

The 11 a.m. blast on the east side of Central Park could be heard for blocks, leaving some with the belief that it was part of a July Fourth celebration.

Investigators don’t believe the man who stepped on the firework or his friends were responsible for creating the explosive, and officials asked that anyone with information about it contact the police.

“I believe we have somebody who made this material and maybe wanted to test it,” Torre said. “The location that it was found and where it was placed is sort of an ideal location conducive to conducting that kind of experiment.”

There was no evidence that the explosion was related to terrorism, and there were no specific, credible threats on New York over the July Fourth weekend, authorities said.