Modelling of proton acceleration in application to a ground level enhancement