'World should work closely to eradicate terrorism'