In winning back Palmyra, the extremist group appeared to be taking advantage of the Syrian and Russian preoccupation with Aleppo, timing its attack to coincide with a major government offensive to capture the last remaining opposition-held neighborhoods in the northern city.