Bozeman man says he killed wife with cast iron frying pan