OUAGADOUGOU, BURKINA FASO, OCT. 16 -- Capt. Thomas Sankara and 12 other officials were executed and buried today after Sankara's chief adviser ousted him as president of this impoverished West African nation, an official source said.

Capt. Blaise Compaore, leader of a bloody coup yesterday, declared a national holiday. A statement read on national radio called Sankara a "madman."

An official source, speaking on condition of anonymity, said Sankara and a dozen other officials, including the presidential press secretary and a senior police official, were shot and buried this morning in a mass burial outside Ouagadougou, the capital.

Witnesses said residents pushed and shoved to get a glimpse of the names of the dead written on scraps of paper that served as makeshift gravestones.

A communique read on government radio tonight said Sankara had planned to "arrest and execute" his opponents in government during a meeting scheduled for last night. The communique said some members of the presidential guard and security forces learned of Sankara's plan and acted to "avoid an unnecessary bloodbath."

The government radio made no mention of Sankara's fate, but other regional stations broadcast news of his death.

Compaore announced that representatives from the country's 30 provinces would meet to elect a new president. The announcement did not set a date for the election.

The new government said 1,500 teachers, fired in 1984 for protesting government policies, had been reinstated. It also said all political prisoners had been released.

In Washington, the State Department said the United States did not plan any immediate action that would constitute recognition of the new government.

"The question of recognition is really not appropriate at the moment," said department spokeswoman Phyllis Oakley. In cases of coups or "abrupt government changes," she said the United States closely monitors the situation but generally refrains from signing agreements of any kind with the new leader.