Two bandits held during attempted robbery