"Had the glass shattered or the rock had penetrated the window, it could have struck and harmed the 8-year-old victim," he said.
Williams began his career as a stand-up comic, gaining attention in 1999 for comedy club appearances. Television appearances on the BET network led to more success.
His 2006 HBO special "Katt Williams: Pimp Chronicles Pt.1" raised his profile even higher.
He has acted in several movies, including Eddie Murphy's "Norbit," and his voice is featured in several popular cartoons, including "The Boondocks."
His often raunchy style has drawn comparisons to comedy legend Richard Pryor.