Knife attacks and car rammings have officials unnerved about widespread societal discontent.