Updated

An election official says Bangladesh's ruling alliance led by Prime Minister Sheikh Hasina has won Sunday's election with 288 seats giving it enough to form the government.

Election Commission Secretary Helal Uddin Ahmed finished delivering the results of the voting early Monday.

Ahmed said the ruling Awami League-led alliance won 288 seats while Jatiya Party led by former president H.M.Ershad had 20 seats. An opposition alliance led by prominent lawyer Kamal Hossain had only 7 and others got 3 out of 300 seats. Election to one seat was not held Sunday and results for another seat were halted by the commission.

The results mean Hasina will form the government for the third consecutive time, even as the opposition claims her leadership has become increasingly authoritarian.

The opposition has rejected the election results, with Hossain calling the election farcical and demanding that a new election be held under the authority of a "nonpartisan government."

More than a dozen people were killed in election-related violence on Sunday and the campaign preceding the vote had been dogged by allegations of arrests and jailing of thousands of Hasina's opponents.

Hossain said a few hours after voting ended that about 100 candidates from the alliance had withdrawn from their races during the day. He said the alliance would hold a meeting Monday to decide its next course.

"We call upon the Election Commission to declare this election void and demand a fresh election under a nonpartisan government," Hossain told reporters at a nationally broadcast news conference.

Calls to several Hasina aides seeking comment were not immediately returned.

Bangladesh's leading English-language newspaper, the Daily Star, said 16 people were killed in 13 districts in election-related violence.

In the run-up to the election, activists from both the ruling party and the opposition complained of attacks on supporters and candidates.

On Sunday, The Associated Press received more than 50 calls from people across the country who identified themselves as opposition supporters complaining of intimidation and threats, and being forced to vote in front of ruling party men inside polling booths.

Hasina has expressed confidence in the outcome, inviting election observers and foreign journalists to her official residence on Monday, when the results were expected to be known.

While rights groups have sounded the alarms about the erosion of Bangladesh's democracy, Hasina has promoted a different narrative, highlighting an ambitious economic agenda that has propelled Bangladesh past larger neighbors Pakistan and India by some development measures.

Voters "will give us another opportunity to serve them so that we can maintain our upward trend of development, and take Bangladesh forward as a developing country," Hasina said after casting her ballot along with her daughter and sister in Dhaka.

Hasina's main rival for decades has been former Prime Minister Khaleda Zia, the leader of the opposition Bangladesh Nationalist Party, who a court deemed ineligible to run for office because she is in prison for corruption.

In Zia's absence, opposition parties formed a coalition led by Hossain, an 82-year-old Oxford-educated lawyer and former member of Hasina's Awami League party.

Both sides were hoping to avoid a repeat of 2014, when Zia and the Bangladesh Nationalist Party boycotted elections and voter turnout in the South Asian nation of 160 million was only 22 percent. More than half of the 300 parliamentary seats were uncontested. The Awami League's landslide victory was met with violence that left at least 22 people dead.

On Sunday, some 104 million people in the Muslim-majority country were eligible to vote, including many young, first-time voters.

About 600,000 security officials, including army and paramilitary forces, were deployed to contain violence in Bangladesh's 11th general election. The country's telecommunications regulator shut down mobile internet services nationwide to prevent possible protests from organizing.

The normally traffic-clogged streets of the capital were largely empty because of a ban on vehicles for everyone except election observers and journalists. Many Dhaka residents had left days earlier to vote in their hometowns.