Mexican state-run oil company Pemex said at least four people died after a fire broke out on a production platform in the Gulf of Mexico early on Wednesday, sparking the evacuation of around 300 workers.

Local emergency services said as many as 45 people were injured in the blaze, which erupted overnight on the Abkatun Permanente platform in the oil-rich Bay of Campeche.

Pemex said it was battling the flames with eight firefighting boats and that a contractor for Mexican oil services company Cotemar was one of the dead.

The fire broke out in the dehydration and pumping area of the platform, Pemex said, though it was not clear what caused it. A Pemex spokesman could not immediately say whether local oil production had been affected.

A spokesman for emergency services in the nearby city of Ciudad del Carmen said earlier that authorities had registered 45 people with injuries from the fire. Other officials put the total at around 16 injured.

The platform forms part of the Abkatun-Pol-Chuc offshore complex. According to data from the U.S. Energy Information Administration, production at the complex has fallen steadily since the 1990s to below 300,000 barrels per day (bpd) in 2013.

Mexico currently produces just under 2.3 million bpd, and is the world's No. 10 crude producer.

Pemex has suffered a number of accidents in recent years, with at least 37 people killed by a blast at the company's Mexico City headquarters in 2013. Another 26 people were killed at a fire in a Pemex natural gas facility in September 2012.

Cotemar is based in Ciudad del Carmen and provides offshore services to Pemex including platform refurbishment, maintenance, and maritime transport, according to its website. (Reporting by Ana Isabel Martinez and Gabriel Stargardter; Editing by Kieran Murray and Peter Galloway)