How is this nail put into this piece of wood?
There is no other possibility but to twist the wood and reshaping it after putting the nail in place, but to do this you must alter the wood properties, because it can't be done if the wood is rigid.
You'll get the answer in this video: