ISIL has claimed responsibility for Tuesday's attack in central Tunisia which killed 12 Presidential Guards when a suicide bomber detonated a device containing 10 kilograms of explosives.