Lift the shingle directly above the shingle you intend to remove and insert wood blocks between the raised shingle and the roof. You should lift the shingle as high as possible without damaging the shingle to maximize work space.
Pry the nails used to secure the shingle you intend to remove with a pry bar to expose the nail heads. If possible, remove the nails entirely. You will most likely be unable to remove the nails, however, because of the limited work space. Anticipate three or four shingle nails here.
Cut the nails heads off of the nails with a hacksaw. Cut through the nail shank as closely as reasonably possible to the top of the shingle.
Insert the pry bar underneath the shingle you are removing and pass the pry bar along the entire length of the shingle to release it, then slide the shingle out from under the above shingle. Shingles have an adhesive strip along their undersides. The purpose here is to lift the adhesive backing from the roof.