TOKYO — President Donald Trump appeared to contradict his national security adviser on foreign soil in an early morning tweet Sunday, noting that while some in his administration were “disturbed” by North Korea’s testing of ballistic missiles earlier this month, the president himself was not bothered. In the missive, Trump also used North Korean leader Kim Jong Un as a foil against a domestic political rival — former vice president Joe Biden — and complicated his relationship with Japanese Prime Minister Shinzo Abe on the first full day of his visit here. Trump’s tweet was a direct rebuke of his national security adviser, John Bolton, who on Saturday had warned reporters here that there is “no doubt” North Korea’s missile tests violated United Nations Security Council resolutions, adding that Trump is determined to maintain sanctions pressure on the regime until it backs down. “North Korea fired off some small weapons, which disturbed some of my people, and others, but not me,” Trump wrote.