The Day the Earth Stood Still
In the 2008 remake of "The Day the Earth Stood Still", Klaatu destroys the nano swarm, but using EMP which also destroys Earth's technology.