You must mail your tax return instead of efiling it if you wish to claim your dependent daughter. If you are expecting a refund, no penalty will likely be assessed. Attach a statement to your return showing that you did attempt to file electronically (include the date efiled), but were rejected due to the fact that your dependent filed in error. Also add that the dependent is amending her return to comply.
Your daughter must file Form 1040X to change her return to that of a dependent. It is likely there will be no difference on her refund amount. She must also amend her state return and attach a copy of the Federal Form 1040X.
Your refund may be delayed slightly while IRS reviews information from both returns.