It was a crash course in geopolitical realities as the new defense secretary stepped onto the world stage.