Oil rose slightly on Thursday as profit-taking cut into an earlier rally driven by rising tensions between Syria and Israel and a drop in U.S. inventories.

U.S. crude rose 5 cents to $75.78 a barrel by 1712 GMT as profit-taking erased an earlier rise up to $77.43, near the all time high of $78.77 a barrel struck on August 1. London Brent crude fell 20 cents at $74.14.

Concerns over supply from the Middle East, the source of nearly a third of world oil, increased after Syria accused Israel of bombing its territory on Thursday and warned it could respond.

The tensions added to worries about supplies in top consumer the United States, where government data showed U.S. crude stockpiles fell 3.9 million barrels in the week to August 31, exceeding forecasts for a 500,000 barrel drop.

The drop came as refiners cranked up processing rates, although gasoline inventories still fell 1.5 million barrels, sinking inventories to the lowest level in two years.

The sizeable drop in crude stocks shows that the tightness in global inventories is now spreading to the U.S., which has long maintained higher stocks than the rest of the OECD nations, said Antoine Halff of Fimat Research.

A string of unplanned outages in the aging U.S. refining system has created tightness in the gasoline market this summer and inventories have been steadily drawn down.

Further support came after the U.S. embassy in Nigeria warned U.S. and other Western interests in the African oil producing nation are at risk of terrorist attack.

The official warning, in a message for U.S. citizens in Nigeria, gave few details but said potential targets include official and commercial installations in the capital Abuja and the commercial city of Lagos.

Supply concerns were heightened by expectations the Organization of the Petroleum Exporting Countries will maintain output curbs when it meets on September 11 in Vienna.

OPEC officials have said oil's push to near record highs was due to a shortage of refined products and boosting output would only add to what they call comfortable stock levels.

I think the market is very well balanced, OPEC President Mohammed al-Hamli, also oil minister of the United Arab Emirates, told Reuters on Thursday. There is no shortage whatsoever of oil supplies.

Some analysts see stronger demand in the fourth quarter, causing a supply crunch unless OPEC raises output.

An OPEC source told Reuters the group may have to raise output by up to 1 million barrels per day (bpd) later this year. OPEC production in August was just over 30 million bpd, according to a Reuters survey.

Traders were also keeping an eye on the storm season in the Gulf of Mexico, with the Colorado State University forecasting more storms ahead.

(Additional reporting by Peg Mackey in London and Annika Breidthardt in Singapore)