Suspect arrested after firing officer's gun