New York City Mayor Zohran Mamdani said he opposes prosecuting the mentally ill man shot by police after charging them with a knife in Queens.