First, you need to wrap the block of dry ice in a thick towel. And then hammer it gently till it breaks inside the towel.
But remember, never try to touch the dry ice empty-handed! Always wear a thick industrial-grade glove and a safety goggle while handling dry ice.