Hamas ties to Syria and Iran in flux as region shifts