The idea that Obama or any politician would visit a warzone and then risk "blowing off" military personnel, in election year, is like saying that a politician would refuse to take the baby and smile for the camera. I don't know why an officer apparently sent his family such a sensational message signed with his full rank and unit, or how it somehow escaped into the public arena, but it's an own-goal if it truly was an attempt to damage Obama. A cynic might wonder why/how this has become such big news.
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us."
-- Shakespeare: Coriolanus, Act 1, scene 1