The Tempe police officer who shot and killed a teenager running away from him has resigned from the department.