NEW YORK — A man accused of attacking police with a machete near New York's Times Square on New Year's Eve was arrested on charges of attempting to murder police officers, authorities said Monday as they continued to investigate whether he was motivated by Islamic extremism.

Trevor Bickford, 19, also faces attempted assault charges from the attack that injured two officers at the edge of the high-security zone where throngs of new year's revelers were gathered, the New York Police Department said in a news release.

Bickford, who lives in Wells, Maine, remained hospitalized Monday with a gunshot wound to the shoulder from police fire during the confrontation. He was awaiting arraignment, and it wasn't immediately clear if he had a lawyer who could speak to the allegations. The Associated Press left messages for his relatives.

A law enforcement official familiar with the matter told the AP on Sunday that investigators believe Bickford traveled to New York City earlier in the week. They are examining whether he made the trip specifically to attack police at the Times Square festivities, the official said.

New York City police and federal officials are still trying to ascertain a motive, and investigators are reviewing Bickford's online postings, which included some mentions of Islamic extremist views, the official said. The official could not publicly discuss details about the ongoing investigation and spoke to the AP on condition of anonymity.

Michael Driscoll, the assistant director in charge of the FBI's New York field office, said Sunday that investigators believe the attacker acted alone.

FBI spokespeople in New York and Boston declined to discuss the ongoing inquiry Monday. Boston field office spokesperson Kristen Setera called it a "very active investigation."

New York City Police Commissioner Keechant Sewell addresses the media during a news conference on Saturday, Dec. 31, 2022. A man wielding a machete attacked three police officers at the New Year’s Eve celebration in New York City, authorities said, striking two of them in the head before an officer shot the man in the shoulder. The two officers were hospitalized, one with a fractured skull and the other with a bad cut, but expected to recover.  ((NYPD via AP)
New York City Police Commissioner Keechant Sewell addresses the media during a news conference on Saturday, Dec. 31, 2022. (NYPD via AP)

NYPD Chief of Intelligence and Counterterrorism Thomas Galati said Tuesday that while Bickford was known to authorities in Maine, he was unknown to the NYPD prior to the attack. 

“Not every police departments can be notified on every single person. If there was some nexus to New York, then they would have notified,” Galati said. 

He did, however, praise authorities in Maine for their diligent work in ensuring Bickford could be easily identified. 

“I think that they did what was prudent up in Maine. They went out, they interviewed the family – a couple of days later they interviewed him, they put a watch on him so that he cannot leave the country and fly out. They opened up a full investigation into him so they did everything they were supposed to do,” he said. 

Galati also said that he believes Bickford fell victim to ISIS or al-QaIda propaganda, but there is no information to either terrorist organization was directing him. 

“They're just putting propaganda out there and hoping that somebody's going to act on what they put out,” he said. 

Galati said all three officers involved in the incident are recovering well after being released from Bellevue Hospital. 

FBI agents were seen Sunday night entering Bickford's family home in Wells. Bickford competed in sports in high school, was part of Maine's state champion wrestling team in 2020 and made the honor roll for his studies at least one year.

The principal at Wells High School declined to comment on Monday. Messages seeking comment were sent to the wrestling coach.

Bickford's father died unexpectedly in 2018, according to an online obituary.

The machete attack happened about two hours before midnight on Saturday, just outside the area where people are screened for weapons before gaining entry to one of the world's biggest and most famous New Year's celebrations.

Two of the officers were struck with the machete before an officer shot the suspect, authorities said. One officer suffered a fractured skull and the other has a bad cut. Both were expected to recover, as was the suspect.

The attack briefly sent some people running, but the festivities in Times Square continued.

___

Associated Press writers Jennider Peltz in New York; Eric Tucker in Washington; Michael Balsamo in Kansas City, Missouri; Michael R. Sisak in New York; David Sharp in Portland, Maine, and Alanna Durkin Richer in Boston contributed to this report.