A man who was shot by police has been arrested on suspicion of possessing an imitation firearm and using it to make threats.
The suspect, in his 40s, was injured by a Surrey Police officer just before midnight on Wednesday outside a house in Oak Tree Road, Knaphill, Woking, Surrey.
Police had arrived at the scene amid reports that a man was armed and was threatening to harm himself and others.
After being shot, the man was taken to St George's Hospital in Tooting, south London, where he remains in a stable condition.
The Independent Police Complaints Commission (IPCC) launched an investigation and disclosed that one round was fired by an officer.
A 6mm ball-bearing gun, which had been painted black, was found at the scene. Further forensic work is being carried out on the weapon.
Bomb disposal experts were also sent to the scene following concerns that explosives might have been inside the property.
A police cordon was set up and a number of residents were evacuated from their homes.
Another man, in his 30s, was arrested at the scene on suspicion of communicating false information about a bomb hoax.
He was released with no further action but later detained by the UK Border Agency investigating suspected immigration offences and he remains in custody.
Police have said they were not looking for anyone else in connection with the incident and have referred the shooting to the IPCC.