Bangladesh and India will closely work together to counter violent extremism and terrorism, visiting Indian Foreign Secretary Subrahmanyam Jaishankar says.