An explosion at an industrial park for chemical companies in Germany has killed at least two people, with 31 others injured and several still missing hours later.

Fire officials who tested the air said there did not appear to be a danger to nearby residents in Leverkusen, near Cologne, after authorities initially urged people to shelter inside.

The explosion at the waste management facility of the Chempark site sent a large black cloud into the air. It took firefighters almost four hours to extinguish the fire that took hold after the explosion.

Germany Fire
A dark cloud of smoke rises above the Chempark in Leverkusen (Oliver Berg/dpa/AP)

The Federal Office for Civil Protection and Disaster Assistance initially classified the incident as “an extreme threat”, but the Cologne fire department later tweeted that pollution measurements “do not show any kind of abnormality”.

They said the smoke had diminished but they would continue to measure the air for toxins.

The city of Leverkusen said the explosion occurred in storage tanks for solvents.

Later on Tuesday, Chempark operator Currenta said a second fatality had been confirmed. It put the number of injured at 31 and said five employees were missing.

“Unfortunately hope of finding them alive is fading rapidly,” the head of Chempark, Lars Friedrich, said in a statement.

City officials asked all residents to stay inside until the late afternoon and warned people from outside Leverkusen to avoid the region.

City officials later also warned people not to let children play outside, use outside pools or eat fruit and vegetables from their back yards in the coming days.

They said experts would only be able to tell in a few days how toxic the soot from the explosion would be.

Germany Fire
Emergency vehicles at the scene (Oliver Berg/dpa/AP)

Currenta said the explosion happened at 9.40am and then developed into a fire. It said three big tanks were affected by the explosion, but it was too early to know the cause.

“Sirens were operated to warn residents and warning alerts were sent,” Currenta said.

Police shut down several major routes nearby for several hours.

Leverkusen is home to Bayer, one of Germany’s biggest chemical companies. It has about 163,000 residents and borders Cologne, which is Germany’s fourth biggest city and has around a million inhabitants. Many residents work at Bayer, which is one of the biggest employers in the region.

The chemical park is close to the banks of the Rhine river.

The mayor of Leverkusen, Uwe Richrath, called the blast “a tragic moment for Leverkusen.”