People really need to stop calling this a dirty bomb.
A dirty bomb specifically refers to a conventional bomb containing radioactive material designed to maximise spread of fallout.
The controlled detonation the Army Engineering Corps cooked up did not contain radioactive material, and was actually rather well designed to minimise any fallout or collateral damage given the circumstances.
If the Army base had done a better job of maintaining the stockpile, they wouldn't have needed to do this - but given the lead azide could've exploded literally anytime at random causing a potentially huge amount of environmental damage, and had become basically immovable due to having such a low ignition energy, the containment and controlled detonation was the only real option left.