Islamic State claimed responsibility for a prison riot in Tajikistan last month in which 32 people were killed, the militant group’s online publication said on Thursday.