Politicians warned against "knee-jerk reactions" after a former Scottish justice minister called for all police officers in the country to be armed.