Quantum correlations in a system of two two-level atoms