Deputy claims he was demoted after complaining about treatment of K-9 officers