GSD are sensitive dogs. If he has never been around many females, he may be fearful. My GSD used to be the same way toward men (her previous owner was a single female). He may be protecting his territory. Neutering him would probably help, but there still needs to be training involved. Like previously stated, there are a lot of reasons and without more information, its hard to say.