In this case the preposition to use with "hinder" is from.
The man was hindering her from taking a selfie, by always standing in the background.
"Hinder" also usually implies some kind of active role in preventing something, as if the man was deliberately stopping her from taking a photo. However, this is not always the case, especially with inanimate objects:
The fallen tree hindered them from driving any farther up the narrow road.
That being said, using "hinder" is kind of any overly florid way to express a simple concept:
She couldn't take a selfie because that man was always in the way.