He should be smart enough to know that. He has needlessly inflamed a delicate situation. He's running for president in wartime, and is supposed to be aware of how his comments will be perceived by our allies and enemies.
You are assuming waaaaaaaaay too much.