The militant group is supposed to be on the back foot, but it retains the capacity to execute deadly raids in the capital city