If it was Islamic State, this attack was a target of opportunity. They don't really care too much about coherent plans or results abroad. It is just done to cause mayhem and increase their international street cred. Plus there is the habit of terror groups these days to take credit for anything they can.