Officer killed in Montana laid to rest in South Carolina