Retiring police chief: "I've been lucky" to work in city