Former guard sentenced in deadly bar shooting