A Connecticut man has agreed to plead guilty to second-degree murder in the killing of a Derby woman.