A Dutch judge on Monday extended the detention of four men suspected of plotting a militant attack in the Netherlands, two days after they were arrested in Rotterdam, police said.