The attackers issued a clear demand: Kenya must withdraw the forces that it deployed two years ago as part of an international effort to drive al-Shabaab out of Somalia and return the country to government rule and a semblance of normal life.