The Navy shared a photo of a ballistic-missile submarine docked in Gibraltar, saying its presence demonstrates the US commitment to NATO allies.