Man charged with second-degree murder after fatally shooting