Semiconductor company STMicroelectronics NV said Tuesday it swung to a loss in its fiscal third quarter.