But the Prince , who was sorry for the poor bird , seized the branch of a tree and hit out at the ravens with it ; terrified at this unexpected onslaught they flew away , leaving many of their number dead or wounded on the battlefield .