As a Kyrgyz passport holder, you can transit in PEK (or any airport in mainland China except XMN) without a visa for up to 24 hours. Your passport must be valid for at least 3 months from the arrival date in PEK, and you must already hold a confirmed onward ticket to Macau.
For any transit in mainland China, I recommend making sure your connection is not too tight as there is paperwork to complete and sometimes long queues.
I found the general visa information at Wikipedia and then used TIMATIC to verify it. You can currently access TIMATIC here but since it's not supposed to be public (but rather just used by the airlines) the URLs tend to become outdated quickly.
The relevant "visa facility" from the TIMATIC listing is:
Note that for the purpose of transit without a visa in China, Macau is considered as a separate country.