It might not be as straightforward as it looks...
Break the deck up into 13 exclusive sets that are each rank.
You choose 2 from one of these sets, and 1 each from 2 of them.
Choose the set you pick the pair from. Choose the 2 sets you pick a singleton from.
Then choose 2 cards from the 4 of the pair rank, and 1 card each from the 4 of the 2 singleton ranks.
Divide all of this by the total number of ways to select 4 cards from the 52.
\(\displaystyle p =\dfrac{ \dbinom{13}{1}\dbinom{12}{2}\dbinom{4}{2}\dbinom{4}{1}\dbinom{4}{1}}{\dbinom{52}{4}} = \dfrac{6336}{20825}\)