In this Jan. 20, 2012, file photo, passengers queue up for a security check at Pudong International Airport in Shanghai, China. A small explosion at a check-in area of Shanghai's Pudong airport injured a few people Sunday, June 12, 2016, Chinese authorities said. (Eugene Hoshiko/AP)

A man detonated a homemade explosive device in Shanghai’s busy Pudong International Airport on Sunday, injuring five people, including himself, the city government said.

The airport’s management authority said the blast occurred at 2:20 p.m. (2:20 a.m. Eastern time) Sunday in the check-in area of Terminal 2.

“According to an initial police investigation, a man took homemade explosive materials in a beer bottle out of his backpack and threw it at [the] ticketing counter,” the government said. After the bottle exploded, the man reportedly took out a knife and slashed his neck, inflicting serious injuries.

Four people were slightly injured by flying glass, the city government said.

A video circulated by state media showed people starting to run before a bright flash of light and a billow of smoke engulfed part of the check-in area.

“A beer bottle filled with white smoke rolled right by my feet. I was scared and made off at once,’’ Ni Bowen, an eyewitness, told the Associated Press.

Another video showed a person on a gurney being taken away by medical personnel.

In July 2013, a man using a wheelchair detonated a small bomb in Beijing’s main international airport. He was the only person injured.

It later emerged that he blamed security forces for a 2005 beating that paralyzed him from the waist down. The man, Ji Zhongxing, was sentenced to six years in prison.

Gu Jinglu and Xu Jing contributed to this report.