England fast bowler Gus Atkinson was hit in successive overs by Josh Tongue in a county cricket match.