Hazelnuts have a lot of oil in them. Grinding the hazelnuts released that oil, resulting in a gloopy mixture.
The good news is, given a day or two some of the oil will separate out (at room temperature. Don't freeze it.) and you can pour it off the top. The result will be thicker when the remaining oil is stirred back in.