Exploring scalar-photon interactions in energetic astrophysical events