An electron cyclotron maser instability for astrophysical plasmas