High-ranking British officer sacked after indecent behavior overseas