They had already sent a fast messenger over to the Bultom City to call over stronger B-ranked adventurers to take on the creature.
Even so, until those adventurers arrived, the town's defence forces had to hold out against the monster alone.
That's where their mistake was; fighting to hold it off and not to defeat it.
A drawn-out battle would be the most unwise decision right now as since the flesh golem was only just a bit over an hour old, it hadn't developed much in the way of intelligence.
To put it bluntly, the creature was still stupid and had zero ideas on how to use the innate power it has to its full potential.
However, the longer it existed, it would eventually begin to learn and the cutscene from the game where the flesh golem spawned thousands of zombies just by waving its arms would come to pass.