This police officer deserves a raise - in treats!

This week, a rookie K-9 with the Pensacola Police Department helped nab a burglary suspect by wrestling away the perp's shotgun.

The incident happened early Thursday morning, at a home on North K Street.

Video shows the moment a K-9 wrestled a shotgun out of a burglary suspect's hands this week in Pensacola, Florida

The K-9, named, Foster, is an 18-month-old German Shepherd and a rookie to the force

The dog's actions meant that the suspect was disarmed so that cops could take the perp into custody

Cops received a call about a man who broke into his ex-girlfriend's home and then threatened her with a gun.

Oliver Hurst then retreated to his own house, where officers found his sitting on the porch.

When he saw officers arriving, the 36-year-old ran into his home and grabbed a shotgun off the couch.

Officers yelled at him multiple times to put down the gun and surrender, but Hurst refused.

K-9 Foster is seen above in this picture with one of his police handlers. He is named after a couple who donated money to the department to purchase him

The suspec,t 36-year-old Oliver Hurst, was booked on several charges including armed burglary, aggravated assault, criminal mischief and aggravated assault of a law enforcement officer

Body camera footage shows the 18-month-old German Shepherd, named Foster, chasing after Hurst and using his mouth to steal away the shotgun before Hurst could fire a shot.

Foster took the weapon to another room as officers used a stun gun on the burglary suspect and took him into custody.

'Because of the quick actions of K-9 Foster, the suspect was not able to fire the shotgun at police, and the officers did not have to use deadly force on Hurst,' the department said in a statement.

Hurst has since been charged with armed burglary, aggravated assault, criminal mischief and aggravated assault on a law enforcement officer.

Foster is one of two new K-9 dogs in the department. He is named Foster after local couple Dana and Lisa Foster, who donated the money to pay for him.