Bahrain king declares state of emergency after protests