Police Scotland has confirmed that a police firearm was discharged during the incident. No-one was injured.