A shooting at a Norwegian mosque on Saturday will be investigated as a possible act of terrorism, police said on Sunday.