Jeffrey Maddrey, the top uniformed officer in the New York Police Department, suddenly resigned Friday night after a subordinate accused him of long-running sexual abuse.