Longtime Central Texas officer dies of heart attack, funeral set for Wednesday