What does ah shit mean?

ah shit meaning in Urban Dictionary

A reactionary phrase for when something happens that is devestating, suprising, or accidental.