A 30-year-old male presents with a 2-day acute attack of asthma. Self-administration of aminophylline and beclomethasone inhalation provided no relief. Examination reveals clear consciousness, cyanosis of the lips, and bilateral wheezes on lung auscultation. The emergency management is: