A police dog carrying a camera helped officers save a man who filled his home with gas and threatened to blow it up.
Gloucestershire Police sent Jedi, the German shepherd, into the property in Edway Parade, Gloucester, on Wednesday.
The man had told police that if they tried to get into the house he would ignite the gas.
Instead Jedi was sent in to find out where the man was and video footage collected allowed officers to swoop and arrest the 36-year-old.
He was arrested on suspicion of making threats to commit criminal damage with the intent to endanger life.
The man was taken to Gloucester's Royal Hospital for treatment for minor cuts.
On arrival at the house, police discovered the gas supply inside had been left on for some time.
Neighbours were evacuated and the gas supply to the house was cut off.
The video footage collected by the camera strapped to Jedi's back allowed officers to swoop and arrest the man at about 0330 BST.