Fired deputy charged with crimes had troubled past in law enforcementNew resolution could help fend off FEMA’s threat to pull flood insurance discount