Two New Jersey men charged with conspiring to kill American troops in Somalia were denied bail Thursday as a federal judge accepted prosecutors’ arguments that no conditions could reasonably assure that the defendants would show up for their legal proceedings.

At a hearing in Newark, U.S. Magistrate Judge Madeline Cox Arleo said defendants Carlos Almonte of Elmwood Park, N.J., and Mohamed Alessa of North Bergen, N.J., presented significant flight risk because they are unemployed and have dual citizenship in other countries — Alessa in Jordan and Almonte in the Dominican Republic.