The US Army plans to detonate about 5 tons of aging lead azide at the Iowa Army Ammunition Plant in Middletown on Wednesday, saying the chemical has become too unstable to store. The controlled blast is scheduled for 9 am local time (1500 GMT) and will destroy the country’s entire stockpile of the material.

The Army has advised residents of a small town and nearby areas to leave “out of an abundance of caution.” Acting Secretary of the Army Adam Telle said: “We don’t believe that the public should be in a panic. Our goal is to keep as much of it as we can here on our Iowa Army Ammunition plant to prevent it from traveling.”

The material was brought to Iowa from bases around the country in 2009. A March inspection found it had partly crystallized, making it sensitive to friction and cold and potentially capable of triggering a spontaneous explosion.

“Inaction is no longer an option,” said Major General Eric Shirley, who leads the operation. Rob Cekada, director of the Bureau of Alcohol, Tobacco, Firearms and Explosives, told reporters: “It's not a matter of if, it's a matter of when, and that would not be a great place for us to be in.”

To limit toxic lead dust, the Army has built barriers around the bunkers holding the material and plans to use foam and water to trap particles. Reuters reported that Army projections show dust could settle up to 40 miles (64 km) southwest, reaching northern Missouri. Officials expect the wind to carry the plume away from Burlington, a city of nearly 25,000 people.

Residents within 5 miles (8 km) were encouraged to evacuate, while the Federal Emergency Management Agency advised people 5 to 20 miles away to stay indoors with windows closed.

The detonation date changed three times after public backlash. A federal appeals court cleared the plan on Monday after environmental groups sued.

Farmer Jill Holler, who organised a protest, told Reuters: “I'm not opposed if this is the only safe option.” She added: “What I'm saying is that it's been so mishandled that people are confused and don't trust anything they're saying.”