The end of the Syrian regime is a major blow to both Moscow and Tehran.