There is no way to check who put it in your phone, but it can be deactivated using Settings > Security > Device Administrators. If the application isn't on that list and you've uninstalled it successfully, then it means it was removed from your phone. Additionally, install Malwarebytes and scan your phone just to be sure there are no other leftovers.