Kenya’s president has said security forces have killed all four militants who stormed a hotel and office complex in Nairobi, confirming earlier reports that 14 civilians had died.