But they did not understand what he meant.
The disciples did not understand what Jesus meant, and they were afraid to ask.
The apostles did not understand what Jesus was talking about. They could not understand, because the meaning of what he said was hidden from them.
But the disciples did not know what he meant. The meaning was hidden from them. They could not understand it, and they were afraid to ask.