LAS VEGAS—Hillary Clintonbeat back a surprisingly stiff challenge from rival Bernie Sanders on Saturday, winning a close race in Nevada’s Democratic presidential caucuses.

“To everyone who turned out in every corner of Nevada with determination and heart: This is your win. Thank you,” Mrs. Clinton said on Twitter, moments after the race was called.

The...