Police officers stand near a cordon at Manchester Victoria Station, in Manchester on January 1, 2019, following a stabbing on December 31, 2018. - A man, a woman and a police officer were being treated for knife injuries, police said Monday, after a stabbing at a railway station in the British city of Manchester. (Photo by Paul ELLIS / AFP)        (Photo credit should read PAUL ELLIS/AFP/Getty Images)
Police officers stand near a cordon at Manchester Victoria Station, in Manchester on January 1, 2019, following a stabbing on December 31, 2018. - A man, a woman and a police officer were being treated for knife injuries, police said Monday, after a stabbing at a railway station in the British city of Manchester. (Photo by Paul ELLIS / AFP) (Photo credit should read PAUL ELLIS/AFP/Getty Images)
PHOTO: PAUL ELLIS/AFP/AFP/Getty Images
Now playing
01:31
Police investigating stabbing as terror attack
Iraqi security forces keep guard the site of a suicide attack in Baghdad, Iraq January 21, 2021. REUTERS/Thaier al-Sudani
Iraqi security forces keep guard the site of a suicide attack in Baghdad, Iraq January 21, 2021. REUTERS/Thaier al-Sudani
PHOTO: Thaier al-Sudani/Reuters
Now playing
02:42
Dozens killed and hundreds injured in Baghdad suicide blasts
PHOTO: Policia Nacional via Reters
Now playing
00:53
See the aftermath of the Madrid explosion
WILMINGTON, DELAWARE - JANUARY 15:  U.S. President-elect Joe Biden speaks during day two of laying out his plan on combating the coronavirus at the Queen theater January 15, 2021 in Wilmington, Delaware. President-elect Biden is announcing his plan to administer COVID-19 vaccines to Americans.  (Photo by Alex Wong/Getty Images)
WILMINGTON, DELAWARE - JANUARY 15: U.S. President-elect Joe Biden speaks during day two of laying out his plan on combating the coronavirus at the Queen theater January 15, 2021 in Wilmington, Delaware. President-elect Biden is announcing his plan to administer COVID-19 vaccines to Americans. (Photo by Alex Wong/Getty Images)
PHOTO: Alex Wong/Getty Images
Now playing
03:49
From Cuba to Delhi, CNN reporters on what Biden faces
PHOTO: Alexey Navalny
Now playing
02:35
Navalny urges his supporters to hit the streets
TOPSHOT - Russian President Vladimir Putin crosses himself as he plunges into the icy waters during the celebration of the Epiphany holiday in Moscow region on January 19, 2021. (Photo by Mikhail KLIMENTYEV / SPUTNIK / AFP) (Photo by MIKHAIL KLIMENTYEV/SPUTNIK/AFP via Getty Images)
TOPSHOT - Russian President Vladimir Putin crosses himself as he plunges into the icy waters during the celebration of the Epiphany holiday in Moscow region on January 19, 2021. (Photo by Mikhail KLIMENTYEV / SPUTNIK / AFP) (Photo by MIKHAIL KLIMENTYEV/SPUTNIK/AFP via Getty Images)
PHOTO: MIKHAIL KLIMENTYEV/SPUTNIK/AFP/Getty Images
Now playing
00:36
See Putin take part in traditional icy Epiphany dip
guatemala honduras migrants tear gas Oppmann intl ldn vpx_00000604.png
guatemala honduras migrants tear gas Oppmann intl ldn vpx_00000604.png
PHOTO: CNNE
Now playing
01:30
Authorities use tear gas and batons against US-bound migrants
PHOTO: Getty Images
Now playing
04:21
Here's where the UK-US special relationship could go under Biden
PHOTO: Getty Images
Now playing
02:41
Alexey Navalny arrested on his return to Moscow
Now playing
02:23
Tropical activity poses threat in Southern Hemisphere
PHOTO: Indonesia Search and Rescue Agency
Now playing
02:09
Woman who is trapped underneath earthquake's rubble captured on video
Barrie
Barrie's aunt speaks about how the police brought her the news about the death of her nephew Ibrahima.
PHOTO: VTM
Now playing
01:26
Aunt of Black man who died after arrest in Belgium: We want justice
screengrab US social media
screengrab US social media
PHOTO: Getty Images
Now playing
04:35
Tech companies ban Trump, but not other problematic leaders
Now playing
01:23
Rejected Tintin cover breaks world record for comic book art
africa china coronavirus vaccine diplomacy lu stout pkg vpx _00025522.png
africa china coronavirus vaccine diplomacy lu stout pkg vpx _00025522.png
PHOTO: CCTV
Now playing
03:09
How China is hoping to use its vaccine as a diplomatic tool
WASHINGTON, DC - JANUARY 13:  Speaker of the House Nancy Pelosi (D-CA) presides over the vote to impeach U.S. President Donald Trump for the second time in little over a year in the House Chamber of the U.S. Capitol January 13, 2021 in Washington, DC. The House voted to impeach Trump on the charge of "incitement of insurrection," 232-197 after a mob of his supporters attacked the U.S. Capitol where Congress was working to certify the Electoral College victory of President-elect Joe Biden on January 6. 10 Republicans voted to impeach. (Photo by Chip Somodevilla/Getty Images)
WASHINGTON, DC - JANUARY 13: Speaker of the House Nancy Pelosi (D-CA) presides over the vote to impeach U.S. President Donald Trump for the second time in little over a year in the House Chamber of the U.S. Capitol January 13, 2021 in Washington, DC. The House voted to impeach Trump on the charge of "incitement of insurrection," 232-197 after a mob of his supporters attacked the U.S. Capitol where Congress was working to certify the Electoral College victory of President-elect Joe Biden on January 6. 10 Republicans voted to impeach. (Photo by Chip Somodevilla/Getty Images)
PHOTO: Chip Somodevilla/Getty Images
Now playing
02:35
How the world is reacting to Trump's second impeachment
(CNN) —  

Police investigating the stabbings of three people at a railway station in Manchester, in northern England, on New Year’s Eve have arrested a 25-year-old man.

The suspect, who is being detained under the Mental Health Act, is now in a secure medical facility, Greater Manchester Police said. Police are confident the man acted alone in “the final stages of the attack,” they said.

But police didn’t rule out the involvement of others at an earlier stage. “The investigation will continue and will examine if anybody may have encouraged or assisted the man to commit the attack,” they said in a statement posted Wednesday on Twitter.

A male police officer was stabbed in the shoulder, and another man and a woman were taken to a hospital with serious knife injuries after the “horrific” attack just before 9 p.m. (4 p.m. ET) Monday at the Manchester Victoria railway station, police said in an earlier statement.

“We experienced a horrific attack on people out to simply enjoy the New Year’s Eve celebrations in Manchester,” Manchester Chief Constable Ian Hopkins said in a statement.

Counterterrorism officers were leading the investigation into the attack, which happened close to the scene of the Manchester Arena bombing that killed 22 people in May 2017, he said.

Police officers on Monday “acted with incredible bravery in tackling the armed attacker at the busy Metrolink station and ensured he was immediately detained,” Hopkins said.

BBC producer Sam Clack was on the platform when the attack unfolded. Clack told the British broadcaster he heard a “blood-curdling scream” and observed what “looked like a fight going on … sort of scuffle.”

Clack heard the man distinctly shout, “Allah,” he said, but he didn’t hear the rest of the sentence.

“The police were on the platform very quickly,” he said. Police used pepper spray and a stun gun to get the man to the ground, Clack said. “He was very much resisting arrest.”

Shortly after the incident, Clack said on Twitter that he had “just been very close to the most terrifying thing. Man stabbed in Manchester Victoria station on tram platform. Feet from me, I was close to jumping on the tracks as attacker had long kitchen knife. Totally shaken. This is seriously messed up.”

The two other victims, both in their 50s, suffered injuries to their abdomens, and the woman suffered additional injures to her face, police said, though their wounds are not considered life-threatening.

Police will consult with medical professionals to assess whether criminal charges can be brought against the suspect, Greater Manchester Police said Wednesday.

New Year’s Eve fireworks at Albert Square went on as planned despite the incident, according to the Manchester City Council.

CNN’s Samantha Beech and Susanna Capelouto in Atlanta, Nada Bashir and Sheena McKenzie in London and Helen Regan in Hong Kong contributed to this story.