Slovenia has banned Israeli prime minister Benjamin Netanyahu from entering the country over war crimes in Gaza.