Select a unit in the town and right click on the army that's besieging you.