I'm sorry to hear about the child first off, and secondly I'm no expert but it sounds to me as if the dog was tired and wanted to be left alone.
This wasn't the dogs fault, it is after all...a dog.