The government in Iraq said an explosives-laden drone tried to hit Mustafa al-Kadhimi’s home, with the prime minister escaping unharmed.