ST. LOUIS • A former city police officer has pleaded guilty of harassing a transgender resident of the Tower Grove East neighborhood by yelling slurs and posting a picture of the person’s home and a gay pride flag on the Internet.

Jeffrey Michael Leveque, 45, will serve a year of probation as part of a six-month suspended sentence, according to the punishment meted out by Circuit Court Judge Steven Ohmer. Leveque must take anger management classes and stay away from the victim.

As a previous condition of his bail, Leveque was banned from the neighborhood.

Prosecutors said Leveque was riding in a car that was in front of the victim’s home in December 2013, blocking the man’s path as he was trying to leave.

They said Leveque opened his door and shouted several obscene slurs and told him, “You better watch yourself.”

Authorities said Leveque then posted the picture, along with additional harassing comments.

Leveque, of north St. Louis County, was a St. Louis police officer from 2001-04, and resigned while under investigation by Internal Affairs.