Iraqi PM visits Islamic State hotbed after sniper kills general