Former cop sentenced for shooting at funeral attendees over noise dispute