A decision to dry out a wet baseball field resulted in the space being set on fire with gasoline.

According to a Facebook post from the town of Ridgefield, Connecticut, a baseball game at Governor Park was delayed because of weather conditions.

"A poor decision was made" to attempt to dry the wet field more quickly by pouring 24 gallons of gasoline and setting it on fire, the town said.

A Twitter video posted by user @AmityNorton shows the fire, with people attempting to put it out by shoveling dirt on top.

Several agencies, including the Ridgefield Police Department and Department of Energy and Environmental Protection, helped put out the fire, said the town. No one was hurt, and no one was in danger as a result of the blaze, according to the post.

"The plan is to excavate the infield, place dirt in a safe container, and add fresh, clean soil to the field," said the town in its Facebook post published Saturday.

In a follow-up post, Ridgefield officials said the field might be closed for the week to complete testing.

Officials told NBC Connecticut that repairs to the field could cost at least $50,000.

Follow Brett Molina on Twitter: @brettmolina23.