Device producing a narrow beam of light