Pakistan determined to root out terrorism, extremism