A Libyan health official says a suicide bomber and other militants have attacked the election commission's headquarters in the capital, Tripoli, wounding at least three people.

Health Ministry spokeswoman Wedad Abu Niran told The Associated Press the suicide bomber blew himself up inside the building and that other militants set fire to it on Wednesday.

No one immediately claimed responsibility for the attack. Islamic extremists are opposed to democratic elections and have targeted them in other countries.

Libya was plunged into chaos following the 2011 uprising that toppled and killed Moammar Gadhafi, and is now split between rival governments, each backed by an array of militias. A U.N.-backed government is based in Tripoli.