Prepositional phrase
As part of or while performing official duties, usually of the military or police personnel, or of government officials.
Used other than figuratively or idiomatically: see in, the, line, of, duty.