Officials in Madagascar say people gathered in town halls where the funeral was being shown on television powered by generators .