A group of two dozen assailants armed with knives tried to enter the presidential palace.