Man sentenced to four years in 2023 mall shooting