Sri Lanka declares a state of emergency as thousands mob the prime minister's