The gaffe saw a US police officer shoot his colleague with a stun gun as they were trying to arrest a suspect.