Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Did you try doing it from command-option-r Internet recovery?

If you are command-r booted to regular recovery it won't work since you are booted to the very volume you are trying to resize.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.