The Russians seized an opening to try to build a military relationship with Turkey, a NATO member, as the US has sought to keep the emphasis on taking Raqqa, the Islamic State's self-declared capital.