The Ukrainian president has come under heavy criticism for his reshuffling of one the country’s most successful security agencies.