The man was sentenced to life in prison.