Seven people were injured, four critically, in an explosion at Bangchak Corporation’s Phra Khanong oil refinery in Bangkok, local government officials said.

The blast occurred at about 14:45 (07:45 GMT) at the facility in the east of Thailand’s capital, and was followed by a fire. Bangchak said the fire was brought under control and extinguished within 30 minutes. The cause is under investigation.

Black smoke rose above Bangkok’s skyline, and local officials told residents to leave the area. A mobile alert from Bangkok authorities said the fire was under control but urged people to avoid the site. Videos shared by eyewitnesses on social media showed flames and smoke rising above the refinery.

The city-run Erawan Emergency Medical Centre said it was treating four “red” cases and three “yellow” cases, which it described as less severe.

Energy minister Akanat Promphan visited the site and said the explosion’s impact appeared limited because the fire began in a distillation tower about 100m (330ft) from where oil was stored. He said the incident was concerning because the refinery was in a residential area. The government was suspending production until it could be confident operations would resume without any issues.

Bangchak said air quality monitoring in the immediate area was within normal ranges. It confirmed that production at the site, which can process up to 120,000 barrels of oil a day, had been shut down. The company’s second refinery, in Chonburi province about 50 miles (80km) from Bangkok, has a daily capacity of about 180,000 barrels.

An explosion at the Bangkok refinery in July 2012 also sparked a fire, but no injuries were reported.