What led to Khazar having to put more strain on its military?