The Israeli military says it hit Nasser Hospital in Khan Younis and is investigating, adding "it does not target journalists as such".