North Korea says committed to fighting terrorism