Dutch prosecutors on Tuesday said they were investigating a possible “terrorist motive” behind the shooting on a tram in the city of Utrecht in which three people were killed and five wounded.