Stevens, a career officer with the US foreign service, had been in the country for less than four months after taking up his post in the capital Tripoli in May.