Qatar’s deputy prime minister and foreign minister has defended his country’s record on extremism.