Drilling above laundry, hit something hard
If you had hit a copper or plastic pipe, you probably would have drilled further after pushing a little harder.
I think it is most likely that you hit a nail plate. These are steel plates that are attached to the studs in locations where electrical cable or various pipes pass through. Their job is to prevent these items from being damaged by a drill or nail, so it seems the plate is doing its job here. Unfortunately, there isn't really anything you can do about it. The presence of the plate indicates that you picked a spot where you won't be able to hand your shelf. You will need to find out which direction the pipe/cable runs and find a different spot to drill that's out of the way.