Cat takes on dog to protect owner's child