First, two security guards were killed, who became targets when they patrolled the harbor area in the municipality of Loon-Plage, says the town's mayor Eric Rommel according to BFMTV.
Then, two migrants were killed between Loon-Plage and nearby Dunkerque, according to Rommel.
French media report that the suspected perpetrator then went to a police station and surrendered.
He also confessed to a fifth murder in a nearby municipality that allegedly took place before the other shootings, according to information from BFMTV.
The possible motive is still unknown.