Do not remove the pulley while it's under tension!
This is dangerous, and is also not the correct way to go about this as the tensioner is an assembly, including the pulley.
I see just two bolts to remove/replace the assembly
https://www.nissanpartsdeal.com/parts/n ... 4ba0a.html
I suspect the hex nut is needed to release tension to remove the belt, though I see it's rounded in your picture. If a six-point socket won't fit, try a 12-point, or perhaps try large channel locks. From what I see in the picture of the part, you don't have to worry about doing further damage to the bolt as it's included in the new part.