Nobody can pin this down cleanly, and it is not for lack of trying.
The complication is that the ESRB did not exist until 1994, created in response to the outcry over games like Mortal Kombat and Night Trap. So the first M-rated titles all arrived in that initial wave, and which one was technically first is not something the ratings body has ever singled out.