Belgian authorities questioned 40 people and arrested 12 of them in an overnight raid related to a terrorism investigation, the federal prosecutor's office said.