Police in Florida arrested four teens on Tuesday who had allegedly attempted to kidnap and rob a local family but had their plans ruined when the father of the family opened fire on them.

"The 51-year old homeowner says his 17-year old daughter had called him to tell him that someone had blocked the road to their house with barrels," the Okaloosa County Sheriff’s Office said in a press release.

A short time after receiving the phone call, the father heard his dogs barking and saw his security lights turn on outside, at which point he went and grabbed his gun.

He opened fire on the teens when he noticed they were trying to break into his garage.

A neighbor who heard the gunfire noticed a vehicle she didn't recognize parked near her house and called the police to give a description of the suspicious vehicle. Police later caught up with the teens as they drove off, and made a felony traffic stop.

"The OCSO investigation revealed the teens had concocted a plan to kidnap the teenage daughter," the sheriff’s office wrote in a statement. "The goal was to first force her out of her car by blocking the road with barrels and garbage cans. (However their intended victim drove around the barrels and kept going.) They then planned to head to her house, confront and subdue her father — who they believed to be wealthy — and rob the home."

Police arrested and charged Keilon Johnson, 19, Austin French, 17, Tyree Johnson, 16, and Kamauri Horn, 15, with attempted kidnapping and attempted home invasion robbery.