Earlier, officials reported about eight dead and said that among the victims were also schoolchildren.
Read more Man attacked near a bar in the center of Vilnius – police ask to identify the suspects
Two teachers and three other school staff were killed at a secondary school in Nontaburi province, bordering Bangkok, according to the report.
The suspect, a 14-year-old boy, is also accused of previously killing his grandparents at home.
The report states that the attacker also died, and one police officer told the news agency AFP that he committed suicide.
Prime Minister Anutin Charnvirakul at the scene told journalists that “the police questioned his close friend, who said the suspect was stressed” because of studies.
Read more “Mitjet” racing series – on the home stretch: tests in Estonia, Kaunas, and the “Red Bull” ring
“His actions also show that he clearly planned” the attack, said Anutin Charnvirakul.
It is reported that the suspect used his grandfather’s pistol.
“The weapon was registered and kept at home, but somehow he gained access to it,” said the prime minister.
According to him, more than 30 other people were also injured, and about nine of them are in critical condition.
Read more Newlyweds still expect gifts in envelopes: how much is usually put in?
Local media report that the shooter was a student of the mentioned school.