A vengeful German gardener found dead in his home apparently decided to settle scores with several people from beyond the grave — setting booby traps that killed a doctor and wounded a woman and her daughter.

Bernard Graumann, 59, whose body was found in his house in the town of Mehlingen on Friday, left behind an explosive trap that killed a 64-year-old doctor, identified only as Jörn K, on the same day, according to the Times of London.

“The investigators assume for the time being that the culprit placed an explosive device at the front door of the doctor’s office,” police said in a statement.

“Presumably the doctor went to pick up the disguised device from the ground. This caused the object to explode,” they added about the blast in the nearby town of Enkenbach-Alsenborn.

On Sunday, a 37-year-old woman and her 4-year-old daughter were injured in Otterberg, about five miles away, when the woman put a log that had been rigged with explosives into her stove.

Their injuries were not believed to be life-threatening, but the girl remained hospitalized, Westpfalz police spokesman Bernhard Christian Erfort said.

Authorities also investigated a suspicious object at the nearby home of a person who had been in an argument with Graumann, but it turned out to be a false alarm.

Residents of Mehlingen and other towns in the area also were briefly alarmed by a loud bang on Tuesday, but it turned out to be a sonic boom from a jet.

Police said all three victims had a “personal or business connection” with Graumann.

“Graumann did not have a good relationship with these people,” police said. “In both cases they had come into conflict in the past. The police cannot rule out the possibility that the deceased had made preparations to endanger the lives of other people before he died. We especially implore people who had a problematic private or business relationship with Graumann to contact the police urgently.”

Investigators believe Graumann may have poisoned himself after laying the booby traps. An autopsy was being conducted.

Police said they found gunpowder, weapons and other items in his home that were “in violation of weapons and explosives laws.”

“It cannot be ruled out that the deceased made other preparations that could endanger further people,” police said.

According to German media, Graumann was known to be a member of a local medieval association, which recreated antique firearms that use gunpowder.

Local radio station SWR reported that Graumann had been married with two children, one of whom is a police officer. He was a hunter with a firearms license.

In the 1980s, he was jailed for trying to shoot his former girlfriend’s lover, SWR reported. The state prosecutor would not confirm the report, according to the Times of London.