A man has been arrested in Tokyo after firebombs were thrown at the headquarters of Japan's ruling party and a car crashed into the security fence around the prime minister's office.