Libyan radicals have attacked the US Consulate, killing the American Ambassador to the US and three security personnel.