Ex-BPD official resigns LASD job over email controversy