Something similar happened in my hometown (about 10,000 people) a little more than 30 years ago. In that case, the shooter's wife worked at City Hall (where the PD was located) and in his psychosis, the shooter came to believe that she was doinking one of the City's cops. In that case, he was unsuccessful in hitting any of the officers in the building, but was swiss-cheesed by one of them before everything was said and done. The incident made an indelible impression on a small town, and on it's police department.