City K-9 officer Rex will enter retirement