The state where the accident happened would require you to comply insurance requirements for that state and not the state where you live.
If the accident weren’t your fault, you would need to contact a reliable insurance company for the claims for the injury or whatever damages that cost you. The claim process is the same as it would be if the accident happened in the state where you live.