Herbert threw for three touchdowns as the Chargers beat AFC West rivals the Kansas City Chiefs 27-21 in Sao Paulo.