According to the nukemap calculator if you're ~1km away in the open you'd be fine, and firing from cover (e.g. behind a berm or hill) you could be as close as 200m away with hearing protection and make it out alive so long as you immediately run upwind.
https://armyhistory.org/the-m28m29-davy-crockett-nuclear-wea...
https://en.wikipedia.org/wiki/Davy_Crockett_(nuclear_device)