Whistler and electron-cyclotron instabilities in a plasma duct