A Maine man was killed when he fell victim to his own booby trap, authorities said.

Ronald Cyr, 65, died from injuries suffered when one of several contraptions he installed in his home went off on Thanksgiving, according to the Van Buren Police Department.

Officers reportedly arrived to find a booby trap designed to shoot a handgun at anyone who opens his front door.

Several other similar devices were also discovered around the residence, prompting authorities to contact bomb squad agents to clear the home, police said.

Investigators said that Cyr’s death on Nov. 28 appeared to be an accident.

“It was determined that Mr. Cyr had been shot as the result of the unintentional discharge of one of his homemade devices,” police said.