Indonesian police detained a Frenchman who entered a military base while playing the augmented reality game Pokemon Go.

A spokesman for West Java police said Tuesday that Romain Pierre, 27, was caught at a checkpoint after initially running away when challenged by security guards at the military complex in Cirebon.

Col. Yusri Yunus, the police spokesman, said Pierre was released after a few hours because it became apparent "he unintentionally entered the complex as he was hunting Pokemon while jogging."

Pokemon Go has not been officially released in Indonesia but is already popular.

Some officials have voiced worries that the game could pose a security threat.