Ex-New Zealand military attaché Alfred Keating secretly placed the device in the country's US embassy.