Man pleads guilty to attempted robbery, sentenced to probation