Yes it was definitely cannibalism, chickens will eat each other if they are hungry enough or lack of nutrients in the environment
Not to make you upset but its very likely your dead hen died a very slow and painful death, chickens don't have mercy for each other when it comes to eating...