Officer who killed Philando Castile gets $40K settlement