caused by a lean condition on initial start.
i asked the exact same question a few months back for my KX
some said it is the reed valve, ( chipped )
other said pilot jet issue.
but most said that their KX or RM did or does exactly the same.
mine does the same and it starts and runs great other wise.
I quit worrying about it,
here is the solution (suggested by others) that works for me:
once the bike starts hit the kill switch momenteraly to keep it from revving to the moon.
reach down and manipulate the choke (open and close half way ) for 5 seconds till the motor's urge to rev gives in :-)
in reality it is caused by a lean condition on initial start