"Iran has successfully test-fired a Sajjil-2 medium-range surface-to-surface missile, a solid-fueled missile developed in Iran..."Solid fuel missiles are good for military work but not as good for launching satellites, where liquid fuel rockets are usually preferred. Liquid fuel provides more thrust but takes a lot longer to set up. Solid fuel rockets can be launched on a moments notice, a requirement for military systems.
More information on Iran's Sajjil can be found in this older Guardian piece, and this Wikipedia article. Note that "Ahmadinejad claims the missile landed 'precisely on target'". Only military missiles even have targets.
The payload the Sajjil can deliver is estimated at about a ton, roughly the same as the Scuds that Saddam used in the 1991 Persian Gulf War, although the Sajjil has longer range. Those Scuds, which did not have WMD warheads, proved not to be of strategic importance. At the size and cost of a Sajjil, it only makes sense to load them with WMDs, not regular high explosives. The WMDs that Iran is known to be building are nuclear warheads.
These missiles aren't being made to generate electricity.