Prosecutor forced to drop a dozen cases after deputy charged