Witnesses told local television stations that they heard at least two loud blasts around midday, just as the sermon had started at Friday prayers, from inside and outside the mosque at SMA 72, a state high school within a navy compound in Jakarta's northern Kelapa Gading neighbourhood.
Police said they had recovered a toy submachine gun belonging to the suspect and inscribed with what appeared to be white supremacist slogans. However, they brushed away speculation that the blasts were a terror attack.
"The suspect is a 17-year-old male student" who was undergoing surgery, Deputy House Speaker Sufmi Dasco Ahmad told reporters after visiting victims at a hospital. He gave no more details.
National Police Chief Listyo Sigit said the suspect was one of two students having surgery for injuries from the blasts.

ADVERTISEMENT