The two men, detained in Syria, belonged to a cell that beheaded American hostages.