In New Zealand, Prince William says extremism must be fought