When the shooting environment is dim, the area where the focus point is focusing might not have enough contrast for the camera to focus. Please try to select a focus point that is focusing at area with bigger contrast or turn on AF illuminator for better lighting.