Finite p-groups of nilpotency class 3 with two conjugacy class sizes