Chief Glenn Olsson said the controversy over the fire department’s flying of the flag partly contributed to his decision to retire