TOKYO — More than 40 people were injured in an explosion Sunday night at a Japanese restaurant in northern Japan, police said.

The explosion occurred in Sapporo, the capital city of Japan's northern main island of Hokkaido, and caused nearby apartment buildings and houses to shake.

Police said 42 people were injured, most of them mildly, though one was in serious condition. They were rushed to nearby hospitals for treatment.

A view of a site of an explosion at a bar in Sapporo, Japan, December 16, 2018 in this still image taken from a video obtained from social media. @KEIBAPANDRA / Twitter via Reuters

The cause of the explosion, which occurred at a two-story restaurant in Sapporo's Toyohira district, is under investigation, police said, adding that they had no further details.

TV footage from Japanese public broadcaster NHK showed the restaurant in flames, with debris scattered on the ground.

The footage later showed gray smoke billowing from the restaurant as dozens of firefighters poured water onto the building, which was charred and nearly collapsing. Windows on an apartment building next door were broken, and cars parked outside were partially covered with debris that had fallen on them.

A witness told NHK that he smelled gas after the sound of an explosion. The broadcaster said the district office was to set up a shelter for neighbors of the restaurant to stay overnight so they could escape the smoke.