When I flush the toilet in my bathroom, the pipe then makes a moaning sound. What would cause that?

Thanks,