Military academies hold first gay pride events