ATLANTA – A five-year-old boy has died after he sustained fatal injuries at a rotating restaurant atop a skyscraper in downtown Atlanta when his head got lodged between a wall and a table fixed to the slow-moving floor.

The freak accident happened on Friday at the Sun Dial restaurant, which is reportedly been closed until further notice.

The restaurant’s automatic systems stopped the floor’s rotating motion when the child became stuck on Friday and then employees dislodged him from the tight space, Atlanta police said in a statement. But the child was critically injured and died later that day at a hospital.

“The kid was just wandering as kids will do. Somehow he found himself in a critical situation where he’s lodged in between the rotating floor and the wall,” police spokesman Warren Pickard told reporters on Saturday.

His death was ruled accidental and he was found to have suffered crushing injuries to his head and brain, the BBC reported.

The restaurant is located at the top of the Westin Hotel, an Atlanta attraction that offers a 360-degree view of the city.