An Oregon police chief and captain resigned after a preliminary investigation indicated “extremely unacceptable behavior” involving racial and homophobic slurs and sexual harassment.