TRIPOLI, Libya - (AP) - Libya declared an immediate cease-fire Friday, trying to fend off international military intervention after the U.N. authorized a no-fly zone and "all necessarymeasures" to prevent the regime from striking its own people. A rebel spokesman said Moammar Gadhafi's forces were still shelling two cities.

The cease-fire announcement by the Libyan foreign minister followed a fierce government attack on Misrata, the last rebel-held city in the western half of the country. A doctor said at least six people died.

Mustafa Gheriani, a spokesman for the rebels, said attacks continued well past the announcement.

The U.N. Security Council resolution, which was passed late Thursday after weeks of deliberation, set the stage for airstrikes, a no-fly zone and other military measures short of a ground invasion. Britain announced that it would send fighter jets, Italy offered the use of its bases, and France was making plans to deploy planes. The U.S. had yet to announce its role. NATO also held an emergency meeting.

With the international community mobilizing, Libyan Foreign Minister Moussa Koussa said the government would cease fire in line with the resolution, although he criticized the authorization of international military action, calling it a violation of Libya's sovereignty.