A 4-year-old boy's dog protected him from a bear roaming in his backyard.