The defense and air defense ministers were both replaced and more than 2,000 officers lost their jobs.