Chaotic dynamics of a third-order Newton-type method