German police arrested three Iraqis suspected of planning an Islamist-motivated attack, the federal prosecutor’s office said on Wednesday.