Bob Odenkirk, 'Better Call Saul' star, hospitalized after collapsing on set

Actor Bob Odenkirk attends the Season 2 premiere of "Better Call Saul" at ArcLight Cinemas on February 2, 2016 in Culver City, California. (Photo by Jason LaVeris/FilmMagic)

"Better Call Saul" star Bob Odenkirk collapsed on the show's New Mexico set on Tuesday and had to be hospitalized.

Crew members called an ambulance that took the 58-year-old actor to a hospital, where he remained Tuesday night, a person close to Odenkirk who was not authorized to speak publicly on the matter told The Associated Press.

It was not immediately clear what caused the collapse, or how long Odenkirk might be hospitalized.

Wednesday afternoon, representatives for Odenkirk confirmed his condition to FOX Television Stations. 

"We can confirm Bob is in stable condition after experiencing a heart related incident. He and his family would like to express gratitude for the incredible doctors and nurses looking after him, as well as his cast, crew and producers who have stayed by his side," his reps wrote in a statement. "The Odenkirks would also like to thank everyone for the outpouring of well wishes and ask for their privacy at this time as Bob works on his recovery."

RELATED: ZZ Top bassist Dusty Hill: Celebrities react to death of music icon

The 58-year-old’s son, Nate Odenkirk, also echoed the reps’ statement, writing on social media, "He’s going to be okay."

"Better Call Saul," the spin-off prequel to "Breaking Bad," has been shooting its sixth and final season, which is set to air on AMC next year.

Odenkirk has been nominated for four Emmys for playing the title character, a down-on-his-luck lawyer named Jimmy McGill who becomes increasingly corrupt and adopts the pseudonym Saul Goodman.

Michael McKean, Odenkirk's co-star who played his brother on the show, was among many wishing Odenkirk well on social media.

"Sending huge love to our @mrbobodenkirk," McKean tweeted. "You got this, brother."

Odenkirk's hospitalization was first reported by TMZ.

Before the "Saul" role, which he also played on "Breaking Bad," Odenkirk was best known for "Mr. Show With Bob and David," the sketch comedy series he co-created with David Cross that originally aired on HBO from 1995 to 1998.

He has won two Emmys, for his writing on "The Ben Stiller Show" and on "Saturday Night Live."

He has also appeared on HBO's "The Larry Sanders Show" and in the films "The Post," "Little Women" and "Nobody."

Stephanie Weaver contributed to this story.