Farmer accused of killing girlfriend granted bail