This is an interesting example of a toy from a time when Health and Safety considerations did not exist!
The cranked mechanism raises and drops the hammers in turn. As they fall, the hammers strike pins set into a small amount of explosive fulminate behind a black powder charge in a brass cartridge carrying a tiny amount of lead shot.
The effect on a ‘battlefield’ of toy soldiers must have been devastating!