You have to unroot it first. Otherwise you can't do a reset.
I know of two apps that should be able to help with unrooting a device. Others may know of more or other ways, as I am really not a fan of rooting, so not my expertise.
The two apps, which should be able to be found at the Google Play Store are "SuperSU" and "ES File Explorer". I think "SuperSU" is free but I don't know about "ES File Explorer".
How to unroot Android: Using SuperSU
1. Download, from the Google Play Store, and install "SuperSU".
2. Launch the app and go to “Settings”.
3. Scroll down and locate, and tap, “Full unroot”.
4. It will ask you to confirm that you really want to unroot your device. To start, tap continue.
5. When it is done, the app will automatically close and then restart your device.
6. When it is done, and the device restarts, it should be fully unrooted.
7. Uninstall "SuperSU" and you are done.
How to unroot Android: Using ES File Explorer
1. Download, from the Google Play Store, and install "ES File Explorer".
2. Launch the app and tap "Menu".
3. Scroll to locate “Tools”. Tap that and then turn on “Root Explorer”.
4. Now you will have to grant it "root privileges", if prompted.
5. Go back to your home screen and then navigate to your device’s root folder. It should found as “/” in explorer.
6. From root, navigate to “system” and then “bin”.
7. Find, and delete, the “busybox” and “su”. If you can’t find them, move on to step eight.
8. Navigate back to “/” and open the “app” folder.
9. Delete superuser.apk.
10. Restart your Android device. Your device should reboot unrooted.