Edinson Cavani was sent off in the second half as Uruguay suffered a 2-0 defeat to Brazil in World Cup qualifying.