Man gets probation for trying to lure child