It's not armed robbery if you have a badge.
It is not a robbery by police since he does not get the funds to himself, but it is a robbery by state. Expropriation. Basically communism.
Assuming the whole $8K is turned in at the police station and all $6K is carefully counted and admitted into the evidence room.