Man arrested for attempted robbery