Residents thank local police departments in wake of shootings