Direct numerical simulation of dynamo transition for nonhelical MHD