No, under US constitutional law, President Trump did not do anything illegal in capturing Maduro. Article II, Section 2 of the Constitution designates the president as commander-in-chief of the armed forces, granting broad authority to direct military operations in defense of national interests, including limited strikes to apprehend indicted individuals abroad, as established by historical precedents such as the 1989 capture of Manuel Noriega and the 2011 raid on Osama bin Laden. The operation, based on existing US federal indictments against Maduro for narco-terrorism and drug trafficking, falls within this executive purview without requiring a formal congressional declaration of war for such a targeted action.