He assured that all necessary legal measures will be taken by the government to prevent such isolated but serious incidents of violence.