Nigeria's president declared a state of emergency Saturday in four states, after a recent spate of deadly attacks by a radical Muslim sect killed dozens of people. President Goodluck Jonathan also ordered the closing of international borders near the affected areas, which include parts of the northeastern state of Yobe, and the central states of Plateau and Niger. Those areas were hit by attacks on Dec. 25 that left at least 42 people dead, and for which a radical sect known as Boko Haram claimed responsibility. The attacks targeted churches and a state office of Nigeria's secret police. The president also declared a state of emergency in parts of the northeastern state of Borno, a Boko Haram stronghold. “What began as sectarian crises in the northeastern parts of the country has gradually evolved into terrorist activities in different parts of the country with attendant negative consequences on our national security,” Mr. Jonathan said in an address on national television. He said he had directed top security officials to set up a special counterterrorism unit to fight the growing threat posed by Boko Haram. In August, Boko Haram claimed responsibility for the bombing of the United Nations headquarters in the capital, Abuja, which killed 24 people and wounded 116 others. The sect, some of whose members are believed to have links to Al-Qaeda, wants to impose Shariah law across Nigeria. The United States Embassy warned American citizens to exercise caution in Nigeria. “Violent extremist attacks have continued in various locations, including the states of Bauchi, Borno, Gombe, Kaduna, Kano, Niger, Plateau and Yobe, resulting in numerous casualties,” the warning read. Boko Haram's widening attacks, though, are intensifying religious divisions in Nigeria. In this nation of more than 160 million people, Africa's most populous, thousands have died in recent years in communal fighting. The sect came to national prominence in 2009, when its members rioted and burned police stations near its base of Maiduguri, a dusty northeastern city on the cusp of the Sahara.