Sheriff: Man tries to lure child into vehicle