Sri Lanka's president declared a state of emergency on Tuesday amid fears that anti-Muslim attacks in a central hill town could spread.