The attackers – members of the Somali Islamist extremist group al-Shabaab – spent weeks reconnoitering the site. They knew every exit and safe haven, and they appear to have leased a shop where they pre-positioned ammunition, explosives, and heavy weaponry.