An officer who acts as military assistant to a more senior officer.
Personal assistant or secretary to a person of high rank.