theatre of noise: Ricoh Lenses On Pentax Cameras -- The Ricoh Pin Fix try this link...
And these are instructions from dpreview forum:
------------------------------------------------------------------------------------------------
If you have a set of feeler gauges and can choose a appropriate size to slide between the lens base and camera mount at approx 6 Oçlock as you look at the lens from the front it will release the offending pin that I suspect is the problem. The unscrew the lens.
------------------------------------------------------------------------------------------------
Turn the aperture control ring of the lens off the "A" setting.
On many Ricoh compatible lenses this will retract the "program pin" that others have had problems with.