COHOES, N.Y. -- An inferno that destroyed or damaged nearly two dozen buildings in a city in upstate New York was sparked by an amateur bladesmith who apparently was trying to imitate something he saw on TV, officials said.

The blaze broke out Thursday afternoon in downtown Cohoes, just north of Albany, and was stoked by 20 to 30 mph winds.

The Times Union of Albany reported that three buildings were destroyed, 18 others were damaged and at least 20 people were displaced. The city is under a state of emergency.

Get Breaking News Delivered to Your Inbox

"It is the worst disaster the city has ever seen," Mayor Shawn Morse told reporters at an evening news conference.

According to CBS affiliate WRGB, Morse said there were some minor injuries, saying that the fire "breaks his heart."

Morse said John Gomes, of Cohoes, apparently was trying to bend metal in an attempt to imitate the History Channel television series "Forged in Fire" when he started a barrel fire in his backyard that quickly spread. The TV series is about bladesmiths competing to create "history's most iconic edged weapons."

Gomes, 51, was charged with felony reckless endangerment and misdemeanor arson. He pleaded not guilty at his arraignment Thursday night and was jailed on $15,000 bail, the newspaper reported. A preliminary hearing was scheduled for next Tuesday.

Officials say an inferno that destroyed or damaged nearly two dozen buildings in a city in upstate New York was sparked by an amateur bladesmith. WRGB

Assistant police Chief Tom Ross called the fire unintentional, or "reckless arson."

"We often tell people we don't allow open burns in the city and they often say, 'What's the worst that could happen?'" Morse said. "Well, this open burn just caused millions of dollars of damage and destroyed half our downtown."

The blaze was brought under control about three hours after it began, but an hour later it started back up again. In the end, Morse said, three city blocks had been engulfed in smoke and flames.

A firefighter was taken to a hospital with unspecified injuries.