The sheriff of Butler County, Pennsylvania, has defended the local police officers who confronted Thomas Matthew Crooks, the gunman who attempted to assassinate former President Trump from a rooftop at a political rally on Saturday, as heroes.

Butler County Sheriff Michael Slupe told the New York Post that the officers who interrupted Crooks just before he fired multiple shots toward the former president likely provided enough of a distraction to save Trump’s life.

"If I’m interrupted, and I move my gun, you are going to have to reassess that whole situation at this point, so yes, you can make a case that those two officers saved the president’s life," Slupe said.

Both federal and local law enforcement have been criticized over the security lapse following the shooting, with some sparring between the U.S. Secret Service and the Fraternal Order of Police.

BUILDING TRUMP SHOOTER USED TO FIRE SHOTS AT PRESIDENT WAS RESPONSIBILITY OF LOCAL POLICE: SOURCE

Law enforcement officers stand over the body of would-be Trump assassin, Thomas Crooks on the roof of a building

Law enforcement officers stand over the body of would-be former President Trump assassin Thomas Crooks on Saturday. The gunman killed at least one person and injured the former president in his attempt. (Todd the Driller)

As the crowd outside Trump’s rally pointed and screamed that there was a suspicious individual with a gun on the roof of a building, local police arrived to search the perimeter, though were unable to spot the person on the roof from their ground-level vantage point, Butler Township Manager Thomas Knights previously told Fox News Digital.

With no easy way to climb onto the roof, Knights said one officer boosted another officer high enough to grab hold of the edge of the building’s roof, which was 12 feet above the ground. As the officer lifted himself up, Knights said he "did observe an individual on the roof," who "was identified as having a weapon" and "did point that firearm at our officer."

As Crooks pointed the firearm at the officer, the officer ducked his head, losing his grip on the roof’s edge and falling about eight feet to the ground, spraining his ankle, the township manager said.

TRUMP SHOOTER THOMAS CROOKS CLASSMATES DESCRIBE QUIET STUDENT AS INVESTIGATORS SEARCH FOR MOTIVE

Slupe told the New York Post that "timing is everything," and the interruption to the shooter bought Trump the seconds he needed to miraculously turn his head so that the bullet struck only his ear. 

The Butler Farm Show, site of a campaign rally for Republican presidential candidate former President Donald Trump

The Butler Farm Show, site of a campaign rally for Republican presidential candidate former President Trump, is seen Monday in Butler, Pennsylvania. Trump was wounded on Saturday during an assassination attempt while speaking at the rally. (AP Photo/Gene J. Puskar)

"Can you imagine 10 seconds before that?" the sheriff asked. "That the president was looking straight ahead and where that bullet could have potentially landed."

Slupe, however, agreed that there was an overall security failure at the event.

CLICK TO GET THE FOX NEWS APP

"You’d have to be stupid not to admit there was a failure," he told the Post, adding that local police did the job that was asked of them.

Fox News’ Audrey Conklin contributed to this report.