You should use TurboTax to file an amended return to cancel out your return, Please explain that you wrongly filed a resident alien return. And will now file a nonresident alien return.
To amend your return, please follow the instructions in this TurboTax Help topic.
You can then go to Sprintax.com to file a nonresident tax return.