Police in Kenya have been granted 14 days to hold a man accused of stabbing a guard to death on Monday outside the country's presidential office, an attack widely seen as a major security lapse.