WAUKESHA -- Police tasered a Waukesha man late Wednesday after he had been sending harassing text messages in violation of his restraining order.

That man, identified as (Peter) Korns in the police report, is a former Waukesha County Sheriff's detective. Police responded to the 2500 block of Jacob Ct. at 8 p.m. Wednesday, and were instructed to park down the street and watch the house where Korns reportedly was heading to.

Korns, driving an orange Jeep, arrived at about 11 p.m. Police staged nearby, and made contact with him after notifying him that he was under arrest. After a struggle, an officer's taser was deployed on Korns, who was taken into custody shortly afterward.

Korns has a recent history of running into criminal trouble, after his wife reportedly filed a temporary restraining order against him in April 2015 after a domestic incident in which the allegedly threatened her with a hatchet. Korns had been charged with Disorderly Conduct in September 2014 for that incident.