Mamdani slammed the capture of Maduro as "an act of war and a violation of federal and international law."