The four-metre (13-foot) snake is still on the loose after the attack early Thursday at the Bali Hyatt, which is in the popular Sanur area but currently closed for renovation.
The security guard, Ambar Arianto Mulyo, spotted the serpent and succeeded in catching it, a police official said.
Mulyo, 59, gripped its head with his right hand and its tail with his left -- but the snake proved too strong, managing to wrap itself around his neck and strangle him.
"The victim died on the spot as his neck was crushed and he could not breath," he said.
More From This Section
The snake is still on the loose after a police search of the hotel and its extensive grounds failed to track down the animal, he warned.
"We urge residents and tourists to stay on the alert," Yudistira said, adding the snake may have slithered into a nearby area of thick foliage opposite the hotel.