A woman in the Northborough Walmart told police she accidentally fired her handgun while digging through her purse.