Four people have been arrested in connection with the attack on an American consulate that killed the U.S. ambassador, Christopher Stevens, and three other Americans, said a Libyan official.