I went back and tried again, this time moving the egg out into the open before whacking. I now have the adorable baby dragon!
I'm glad that worked for you. Did you have to start a new game or were you able to reload a previous save before the egg hatched?