(INSIDE EDITION) -- A Louisiana homeowner held a man at gunpoint in front of his home after he allegedly caught the man trying to enter his property.

The whole ordeal was recorded on Facebook live.

Caesar Ray said he was home with his daughter and wife when he received a call from a neighbor telling him that an unidentified man was trying to get into his daughter’s vehicle, which was parked in their Baton Rouge driveway.

Ray told InsideEdition.com that he immediately grabbed his rifle and went outside.

“I saw a gentleman just jerking off a window screen on my porch as if he didn’t have a care in the world,” Ray said. “It just didn’t make sense so I went into auto mode and just pointed my rifle at him.”

Ray said he instructed the man, who appeared to be under the influence, to get down on the ground and then he handcuffed him until police arrived.

Ray's daughter also came out onto the porch with a pistol during the ordeal. The family feared there may have been another intruder at the time.

In an intense video of the moment, the alleged burglar can be seen lying on his stomach on Ray's porch.

Ray said he asked his wife to turn on Facebook live midway through the potentially dangerous encounter for their safety.

Ray, who is a former correctional officer, said he wouldn’t advise someone without the proper training to react like he did.

“Always be as vigilant as possible. Be aware of your surroundings at all times,” Ray said. “Stay inside if at all possible. Arm yourself, lock your doors, make sure you call the authorities.”

The alleged burglar, who was later identified as 18-year-old Roberto Garcia, was arrested once police arrived.

He was reportedly charged with auto burglary and attempted burglary of an inhabited dwelling.