Yes, it was planned. Not an accident, or something that just happened...
https://www.washingtonexaminer.com/news/peter-strzok-spoke-of-media-leak...