All perfect praise be to Allah the Lord of the Worlds. May His peace and blessings be upon our Prophet Mohammad and upon all his family and companions.
There is nothing wrong with this if this device is used on temporary basis and by mutual agreement of husband and wife since this issue falls into family planning, which is allowed by Sharia. However, this is provided that the device is inserted by a female doctor and that it doesn`t cause harm to the woman. And Allah The Almighty Knows Best.