The spokesperson for Israeli premier Benjamin Netanyahu has resigned following his scathing criticism of the prime minister, according to Hebrew media.