A Jamaican judge has ruled that a teenager suspected of hoping to join Islamic extremists must remain in police custody.

Defense lawyer Zara Lewis filed an application seeking the 16-year-old boy's release from police detention. But the magistrate ordered Thursday that he remain in custody until a Tuesday hearing.

Over the weekend, Suriname police said the Jamaican teen was denied entry after arriving at the South American nation's main airport trying to get on a flight to the Netherlands.

An intelligence agency that Suriname police did not identify informed them the boy apparently intended to travel to Turkey and then slip into Syria to join militants from the Islamic State group.

He was flown back to Jamaica, where he has been in police custody since Saturday.