Man arrested for attempted carjacking