Islamic State said on Monday it was behind a blast in a small town in southern Libya on Saturday, the militant group’s first attack in the country for at least a year.