Optical, infrared and radio studies of compact H II regions. I - The complex in S 106