If you have a safe in your home and you knowingly wire up a bomb that goes off when a certain lever is pulled then you lie to the police and tell them the way to open the safe is to pull that lever you'd pretty clearly be responsible for the damage done when the bomb goes off.
I don't see why this would be any different.
cause you're not harming the officer. this is more like a safe that destroys whatever is inside
Because booby traps are illegal and wiping your phone doesn’t kill or maim the officer