This is a pun. Shooting for a position means making it one's intent to achieve. Shooting also is what guns do to fire bullets. An army officer would likely use a gun. So the joke is that people literally shoot for that position.
An army officer is a position that some people shoot for .