Deputies say man confesses to killing his wife