Man accused of trying to steal car arrested