A 65-year-old Maine man was fatally shot after he triggered a booby trap he had set in his house, according to the authorities.

The Police Department in Van Buren, Maine, received a phone call on Thanksgiving evening from the man, Ronald Cyr, 65, saying he had been shot, the department said in a Facebook post.

An officer, an ambulance and the United States Border Patrol responded and provided Mr. Cyr with emergency medical help, but he died as a result of his injuries, the authorities said.

“Officers discovered that the front door of the residence had been outfitted with a device designed to fire a handgun should anyone attempt to enter the door,” the Police Department said.