The city’s police chief and deputy chief announced their retirement amid criticism over the city’s handling of Daniel Prude’s death