Zhou Xingbai, a 29-year-old migrant worker from the southwestern province of Guizhou, posted his message in the early hours of Sunday, the police said on their official Weibo microblog.
On the messaging app WeChat, Zhou said that he owed a lot of money, and was "preparing to commit an extremely crazy act which will almost certainly lead to my death," the police said.
Zhou threw self-made explosive packed in a beer bottle at a ticketing counter in the airport's Terminal Two, and slashed his own neck after the explosion, authorities said.
Reuters was unable to independently contact Zhou.
Zhou, who was employed by an electronics firm in the nearby city of Kunshan, was heavily in debt from Internet gambling and dependent on loans from friends, after having lost his life savings, the police said.
He used public transport on Sunday to travel to the airport from Kunshan, where police later found fireworks and explosive materials in his rented flat, they said, adding that the case was still being investigated.
Explosives are relatively easy to obtain in China, home to the world's largest mining and fireworks industries.
A bomb disposal expert checks a luggage near the site of a blast at a terminal in Shanghai's Pudong International Airport, China, June 12, 2016. Photo by Reuters/Aly Song |
Related news:
> Blast from "self-made" explosive injures three in Shanghai airport