Reminds me of Blart Versenwald III from Hitchhiker's Guide to the Galaxy
Blart Versenwald III was a top genetic engineer, and a man who could never keep his mind on the job at hand. When his homeworld was under threat from an invading army, he was tasked with creating an army of super-soldiers to fight them. Instead, he created (among other things) a remarkable new breed of superfly that could distinguish between solid glass and an open window, and also an off-switch for children. Fortunately, because the invaders were only invading because they couldn't cope with things back home, they too were impressed with Blart's creations, and a flurry of economic treaties rapidly secured peace.