Judge drops rape charge against former officer