A man has thrown several firebombs into the headquarters of Japan’s ruling party in Tokyo, then crashed his car into the fencing of the prime minister’s residence, police said.