Sphinx moth of some type. I've never found any way to differentiate between pupas. I know that some can be identified by the shape of this thing or that or by looking at characteristics under a microscope but unfortunately I've not been able to get that far in my studies. But if you had tomatoes near that spot last year the Tomato hornworm is most likely.
I had a similar looking pupa in a container last year. Poor thing never did come out. Not sure what happened, maybe I didn't cover it with enough soil, maybe I let it dry out too much. I don't know. I was really sad because I wanted to know what it was. It wasn't near the garden so I'm sure it wasn't a hornworm.