A Turkish interior ministry official says police have detained a Japanese national as he tried to cross the border to Syria with the intention of joining Islamic State extremists.

The man was intercepted on his way to the IS-held Syrian town of Jarablus and is now in custody. The official told the AP he had a Japanese passport on him and told interrogators that he wanted to join IS.

The official spoke on condition of anonymity in line with government practice.

The state-run Anadolu Agency said the man is 24 and has the initials M.M. It said he contacted the group over social media.

Separately, five foreigners were arrested near the border as they tried to cross into Syria, according to a security source cited by Anadolu.