All the gunmen who staged a deadly attack on a luxury hotel and shopping complex in Nairobi were killed, Kenya's president said Wednesday, declaring an end to the brazen overnight siege that underscored the ability of al-Shabab extremists to strike despite military setbacks.