Man arrested after attempted robbery