(Reuters) - An assailant wielding a meat cleaver or other sharp metal object injured a New York City police officer on Thursday in midtown Manhattan, and a second officer was also hurt during the incident, police said.

The attack occurred just before 5 p.m. local time near Madison Square Garden, NYPD spokeswoman Sophia Mason said.

"Apparently the suspect assaulted one of the officers with some sort of sharp object, likely a meat cleaver, and shots were fired," Mason said.

Further details on the incident were not available.

Both officers were taken to an area hospital and likely to survive, though the extent of their injuries was not immediately available.

One officer was injured by the meat cleaver, while the cause of the injuries sustained by the second officer was not immediately available, Mason said.

The suspect was taken into custody and transported to an area hospital for treatment, though his condition was not available.

(Reporting by Eric M. Johnson in Seattle; Editing by Dan Grebler and David Gregorio)