Auto-translated
It seems the issue only occurs when playing on "hero" difficulty (and it wasn't just me who experienced it). When replaying the mission on "veteran" difficulty, it's possible to attack the town, and everything works normally. Thanks to Ratnik for the tip.