Buddy Valastro is recovering following a bowling accident at his family's home in New Jersey.

The Cake Boss star shared a photo of himself on social media lying in a hospital bed after being "involved in a terrible accident a few days ago."

That terrible accident turned out to be a very unfortunate incident that happened while Valastro was trying to spend some quality time with his family at their home, which is equipped with a bowling alley. "There was a malfunction with the bowling pinsetter, a common fix in the past, but it turned into a terrible accident," a representative for Valastro told PEOPLE.

"After trying to release the bowling pin from the cage mechanism, his right hand became lodged and compressed inside the unit," they continued. "Unable to remove his hand, he can see a 1-1/2" metal rod slowly and repeatedly impale his hand three times between his ring finger and middle finger."

After more than five minutes, Valastro's two sons, Buddy Jr., 16, and Marco, 13, ended up using a reciprocating saw "to cut through the metal rod and relieve his father from the machine."

Valastro has since had two surgeries on his hand. He is now recovering at home after being released from the hospital on Wednesday.

"It will be an uphill battle as it's Buddy's dominant right hand and he will need prolonged recovery and therapy," Valastro's rep added.

Buddy Valastro has been a fixture on TV for over a decade, most notably as the star of the reality TLC show "Cake Boss." The show ran from 2009-2017 over 14 seasons and followed the family bake shop, Carlo's City Hall Bake Shop in Hoboken, New Jersey.

Best of luck on a speedy and full recovery Buddy!