A former CIA leader on war games, “red teams” and other ways the U.S. prepares for worst-case scenarios.