Man accused of firing gun at passing vehicle arrested for attempted murder