A man was arrested after allegedly setting fire to the Pennsylvania governor's mansion as Gov. Josh Shapiro and his family slept inside early Sunday morning.

At a press conference Sunday evening, authorities named 38-year-old Cody Balmer as the suspect.

Balmer will be charged with attempted murder, terrorism, aggravated arson and aggravated assault against an enumerated person, according to officials

Shapiro posted on X that he and his family awoke at about 2 a.m. to police banging on their door after "an arsonist set fire" to the governor’s residence.

"Thank God no one was injured and the fire was extinguished," Shapiro wrote. "Every day, we stand with the law enforcement and first responders who run towards danger to protect our communities. Last night, they did so for our family – and Lori and I are eternally grateful to them for keeping us safe."

Firefighters and police responded around 2 a.m. to a report of a fire at the governor’s residence in Harrisburg, Pennsylvania State Police said. 

No one was injured and the fire was extinguished, police said, adding that the fire caused significant damage to a portion of the residence.