Carjacking thwarted, one in custody