Depending on how dark the ambient light is, you will find most cameras will have problem focusing properly. Are you not using built in flash? It has light assist beam. Also, you can use center focus point and try focus onto an object with a bit more contrast of the same distance. Once you locked focus, then recompose and shoot.