The retirement is effective immediately, the City of Selma said on Thursday.
Dyck will be serving as the acting chief until an interim chief is appointed, while the city searches for Garner's replacement.
Dyck has more than 30 years of experience at the department, the City said.