A 13-year-old was in stable condition after he was shot Saturday evening while throwing rocks at cars in southwest Atlanta, police said.

Police said the teen was throwing rocks at about 7:30 p.m. near Stephens and McDaniel streets when a rock broke the rear windshield of a car driven by Alex Williams.

Williams allegedly pulled a gun and shot the teen in the hip, Atlanta police spokeswoman Kim Jones said.

Williams was arrested and charged with aggravated assault and the teen was taken to a local hospital, she said.

Williams is the pastor of the Mechanicsville United Church of God in Christ on McDaniel Street.

Staff writer Mike Morris contributed to this article.