The Israeli prime minister says he won't take lectures from a Turkish president "who jails journalists... and helps terrorists".