First-order resonances in three-degrees-of-freedom systems