Ex-Mesa officer says he accused man had a gun when he fired shot