Brazil's economy entered the fourth quarter with a surprise contraction in October, adding to signs that activity is cooling under tight monetary policy.