Nigerian soldiers angry about the killing of an officer razed buildings and shot dead more than 30 civilians Monday in a northeastern city long under siege by a radical Islamist sect.