LOUISVILLE, Ky. (WDRB) -- Police arrested two men on Friday wanted for a string of church break-ins in Indiana and Kentucky.

Officers arrested 22-year-old Zach Weaver at the bus station in Louisville on Friday, trying to get on a bus headed out of state.

Detectives say they arrested 24-year-old Matthew Wright at a lake in Meade County, Kentucky, where he was found hiding under a pontoon boat.

The two are accused of breaking into five churches in Harrison County, Indiana, and two churches in Meade County.

The Ekron Baptist Church in Meade County caught the suspects on surveillance video breaking in and throwing the safe from a second story window Thursday morning.

Ekron Baptist Church says fortunately the safe did not have anything of significant value inside, but repairs will be costly.

"The safe itself was worth quite a bit of money and some of our pastor's belongings were stolen," Music Director Melissa McRae said.

Police say sharing the surveillance images on social media was crucial in solving the case.

“I posted it on Facebook this morning. Once we got the pictures out and within minutes I had a relative call me and say this is who one of the guys is and this is who the other guy is with the mask,” Head of Deacons Lance Adam said.

The pastor of Heidelberg United Methodist Church in Harrison County is relieved the suspects were caught.

"I've talked to a couple of the other pastors in the area whose churches got hit and we're all in agreement about praying for these guys but we do want them to come to justice because what they did is unacceptable,” Pastor Robert Pryor said.

The suspects will face charges in both states.

Copyright 2017 WDRB Media. All rights reserved.